ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

Illegal number: 0x

Open SrFluff opened this issue 4 months ago • 7 comments

Make sure you are on the latest version by running ani-cli -U

Metadata (please complete the following information) Version: 4.15.0 OS: Debian Linux 13 Trixie (ARM64) Shell: fish Anime: Chainsmoker Cat

Describe the bug When attempting to download a show, ani-cli outputs the following message: /usr/bin/ani-cli: 253: Illegal number: 0x

Steps To Reproduce

  1. Run ani-cli -d -e 1-4 "Chainsmoker Cat"

Expected behavior Ani-cli should download all specified episodes of the show.

Image

SrFluff avatar Jul 27 '26 03:07 SrFluff

Same here on Termux. Version: 4.15.0 OS: Android 15 (V1TRS35H.60-33-6) Shell: Bash Anime: KAIJU GIRL CARAMELISE

Expected start of an anime throws the output of: /data/data/com.termux/files/usr/bin/ani-cli: 253: Illegal number: 0x

Steps to reproduce: Running "ani-cli -d -e 4 "Otome Kaijuu Caramelise""

What should happen: The episode should download.

Image

WizenedTick6 avatar Jul 27 '26 06:07 WizenedTick6

Update: bash -x ani-cli -d -e 1-4 "Chainsmoker Cat" Removes the illegal number: 0x. Instead just returning Episode is released, but no valid sources! I saw this 'solution' mentioned in #1823.

Update 2: The root cause is ani-cli's shebang to /bin/sh, changing this to #!/bin/bash removes the issue, though I still get a release no valid sources.

SrFluff avatar Jul 27 '26 16:07 SrFluff

Also Getting Illegal number: 0x

Metadata (please complete the following information) Version: 4.15.0 OS: Ubuntu 24.04.4 LTS (WSL running inside of win11) Shell: bash Anime: The Ancient Magus' Bride

Steps To Reproduce Used: ani-cli "The Ancient Magus' Bride" --vlc then picked 6th option first episode

TheRealJamesRussell avatar Jul 27 '26 22:07 TheRealJamesRussell

I think this is a problem between Bash and Shell, but they want to keep it using Shell, so idk.

SrFluff avatar Jul 27 '26 23:07 SrFluff

I think this is a problem between Bash and Shell, but they want to keep it using Shell, so idk.

update-alternatives --install /bin/sh sh /bin/bash 100

js290 avatar Jul 29 '26 01:07 js290

This issue doesn't occur on the v5 branch for me, so you could use that for the time being. Just don't forget to switch back to the main branch once v5 is released. ani-cli -U v5

GerritPlehn avatar Jul 29 '26 06:07 GerritPlehn

The workaround to use v5 does not work when using -s for syncplay

Tholleman avatar Aug 01 '26 05:08 Tholleman