Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major outage - script doesn't work #1161

Closed
Raif1 opened this issue Jun 28, 2023 · 26 comments
Closed

Major outage - script doesn't work #1161

Raif1 opened this issue Jun 28, 2023 · 26 comments
Labels
category: url url changes or extraction problems priority 1: high For issues that affect a ton of users type: bug something isn't working

Comments

@Raif1
Copy link

Raif1 commented Jun 28, 2023

Metadata (please complete the following information)
Version: [e.g. 2.0.2]
OS: Gentoo Linux
Shell: Zsh
Anime: Any

Describe the bug
printf: 0x#1: invalid hex number
.local/bin/ani-cli: line 147: warning: command substitution: ignored null byte in input
Episode not released.`
Steps To Reproduce

  1. Run `ani-cli '
  2. Search any anime.
  3. Choose any episode

Expected behavior
The errors should not be present. The episodes are supposed to load.

Screenshots (if applicable; you can just drag the image onto github)
image
image

Additional context
I installed mpv, aria2, FFmpeg, and fzf with Emerge, and they were installed system-wide. However, I only installed ani-cli for my user. Could this be the cause of the error I am currently experiencing? Everything worked fine yesterday. But I'm facing the errors now.

@Raif1 Raif1 added priority 2: medium Default for bugs type: bug something isn't working labels Jun 28, 2023
@Raif1 Raif1 changed the title Episode not released yet. Episode not released and other errors Jun 28, 2023
@net528890
Copy link

i got the same issue i have been tried re install from yay , git clone from git , and use on releases, it all doesn't work

@uzuto
Copy link

uzuto commented Jun 28, 2023

same error here

@port19x port19x added category: url url changes or extraction problems priority 1: high For issues that affect a ton of users and removed priority 2: medium Default for bugs labels Jun 28, 2023
@port19x port19x pinned this issue Jun 28, 2023
@justchokingaround
Copy link
Collaborator

da677bd could be used as a short term fix, if we don't figure out how the encryption works quickly enough

@Abhijith021
Copy link

same issue
is there anything we can do to solve this issue

@Ngaicode
Copy link

i'm getting the same issue

@port19x
Copy link
Collaborator

port19x commented Jun 28, 2023

same issue is there anything we can do to solve this issue

Not right now. When a pull request with a fix becomes available I will link it here for testing

@creeperkafasi
Copy link

I couldn't even search for anime, seems like allanime now sends a request to api.allanime.day instead of the .to domain. The Referer header needs to stay the same though.

Changed the api.${allanime_base} to api.allanime.day in lines 168, 188 and 195 and search works
Selecting an episode still doesn't work though

@emanueljg
Copy link

Having the same issue, ani-cli version 4.4.0

@Derisis13 Derisis13 changed the title Episode not released and other errors Major outage - script doesn't work Jun 29, 2023
@MMMNB44
Copy link

MMMNB44 commented Jun 29, 2023

Same issue on windows 11 version 4.4.0 and 4.4.5 sadly.

@woolw
Copy link

woolw commented Jun 29, 2023

yep, can't even find any anime

ani-cli version 4.4.5
Arch Linux

@creeperkafasi
Copy link

creeperkafasi commented Jun 29, 2023

The person behind animdl seems to have figured it out.

This is the function they use for decrypting the new sources

And there seem to be 2 different passwords for # and ## links

I have no idea on how to implement this with bash though.

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jun 30, 2023

It's folk, a single guy, please atleast give him credit.

@trueauracoral
Copy link

The mastermind behind anime web scraping. Python daddy.

@Veroniclover
Copy link

The folks over at animdl seem to have figured it out.

This is the function they use for decrypting the new sources

And there seem to be 2 different passwords for # and ## links

I have no idea on how to implement this with bash though.

I have created one on bash but it is too slow...
Here

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jun 30, 2023

The folks over at animdl seem to have figured it out.
This is the function they use for decrypting the new sources
And there seem to be 2 different passwords for # and ## links
I have no idea on how to implement this with bash though.

I have created one on bash but it is too slow... Here

also It won't work in ani-cli as it follows POSIX standard, not bashisms

@port19x port19x linked a pull request Jun 30, 2023 that will close this issue
19 tasks
@ryan-c-dev
Copy link

Far from my knowledge to throw out serious suggestions but could it be possible to make the script POSIX compliant and faster using a shell like Dash?

Maybe impossible w/ reliance on bashisms though?

@white-spaced
Copy link

Far from my knowledge to throw out serious suggestions but could it be possible to make the script POSIX compliant and faster using a shell like Dash?

Maybe impossible w/ reliance on bashisms though?

it is posix compliant and it uses /bin/sh, i use dash and it works perfectly fine.

@Maritsu
Copy link

Maritsu commented Jul 2, 2023

4.4.5 on Arch Linux; no results found

@ryan-c-dev
Copy link

4.4.5 on Arch Linux; no results found

it's part of the AUR, not a standard arch linux package (i.e. Pacman -Ss) , no point installing right now though as the script needs to be reworked apparently.

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jul 2, 2023

it's part of the AUR, not a standard arch linux package (i.e. Pacman -Ss) , no point installing right now though as the script needs to be reworked apparently.

he meant that his current version is not working, you are welcome

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jul 3, 2023

Guys there is PR opened please be patient as we test it thoroughly, we are not merging due to 2 reasons :-

  1. We all have jobs and are very busy people
  2. What if allanime changed the decryption algorithm again as we have gone through that situation when we were scraping gogoanime and they changed their keys more frequently(like everyday), so we don't that state where we merge it and allanime change their encryption/password

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jul 3, 2023

It will be merged as soon as we get time.

@HonkHonkGoose228
Copy link

HonkHonkGoose228 commented Jul 4, 2023

4.4.5 on Arch Linux; no results found

Same here. Using Linux Mint 21.1 Vera.

@justchokingaround
Copy link
Collaborator

it doesn't matter what system you use, the script is broken atm. in the meantime you can use the fix like this, before we merge it into master:

sh <(curl -s "https://raw.githubusercontent.com/pystardust/ani-cli/hex_decryption/ani-cli")

@HonkHonkGoose228
Copy link

it doesn't matter what system you use, the script is broken atm. in the meantime you can use the fix like this, before we merge it into master:

sh <(curl -s "https://raw.githubusercontent.com/pystardust/ani-cli/hex_decryption/ani-cli")

Thank you so much!

@CoolnsX
Copy link
Collaborator

CoolnsX commented Jul 9, 2023

fixed in #1171

@CoolnsX CoolnsX closed this as completed Jul 9, 2023
@port19x port19x unpinned this issue Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: url url changes or extraction problems priority 1: high For issues that affect a ton of users type: bug something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.