wolfswolke / aniworld_scraper

Aniworld.to mp4 scraper for animes.
MIT License
49 stars 16 forks source link

[BUG] Uncaught exception after trying to download an offline Source #35

Closed SleeperXr closed 3 months ago

SleeperXr commented 5 months ago

Describe the bug: If I try to Download a Stream on VOE that's not available, it doesn't want to Download from the secondary Sources

Steps to Reproduce the bug: Download a File from an offline VOE Stream

Expected behavior: 2024-01-26 14:07:15,806: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:16,871: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:17,816: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:18,787: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:19,807: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:20,675: INFO search_for_links.py ->Trying again... 2024-01-26 14:07:20,677: ERROR search_for_links.py ->Could not find cache url for VOE. 2024-01-26 14:07:20,677: ERROR Uncaught exception: <class 'TypeError'> can only concatenate str (not "int") to str File "**\manuel_episode_download.py", line 48, in logger.debug(MODULE_LOGGER_HEAD + "{} Cache URL is: ".format(provider) + cache_url)

Additional Info if I change the Line 48 on "search_for_links.py" to Vidoza it works fine

Tried on Linux and Windows

ThilloBLD commented 4 months ago

I've got the same Error. Downloads via Streamtape and Vidoza is working fine. Downloads via VOE seem to just fail in the above named error

wolfswolke commented 4 months ago

Sorry i currently have a lot of irl work and im also using most of my free time for the Deathgarden API. I will try to look into your problem as soon as i can.

wolfswolke commented 4 months ago

@SleeperXr This is a temp fix that just made VOE not be used first. I have to deobfuscate the JS VOE uses now because they don't have a "link" in it anymore and generate it on the fly. I was not the person who wrote the VOE code to begin with so this might take some time.

wolfswolke commented 4 months ago

@SleeperXr please try the new version. It should work now. I also added some logic to use another provider if one fails.

SleeperXr commented 4 months ago

@wolfswolke Works fine now, thanks for your help!