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

Update gogo/constants.py to download from new Gogoanime server domain. #79

Closed
foxtbirdy opened this issue Jan 23, 2025 · 0 comments
Closed

Comments

@foxtbirdy
Copy link

foxtbirdy commented Jan 23, 2025

Senpcli is incapable to download anime from gogoanime servers.

Ran:

senpcli -q 1080p -sd sub -hls -s gogo "Gate - Thus the JSDF Fought There!"
Toggle to see output code
PS C:\Windows\System32> senpcli -q 1080p -sd sub -hls -s pahe "Gate - Thus the JSDF Fought There!"

                                   .__  .__
  ______ ____   ____ ______   ____ |  | |__|
 /  ___// __ \ /    \\____ \_/ ___\|  | |  |
 \___ \\  ___/|   |  \  |_> >  \___|  |_|  |
/____  >\___  >___|  /   __/ \___  >____/__|
     \/     \/     \/|__|        \/


Setting site to Gogo since HLS mode is only available for Gogo
No anime found with the title "Gate - Thus the JSDF Fought There!"
Here are the results:
1: Gate: Jieitai Kanochi nite, Kaku Tatakaeri
Pick one of the results by entering its number
> 1
Downloading to: C:\Users\USER\Downloads\Anime\Gate - Jieitai Kanochi nite, Kaku Tatakaeri
Getting HLS links:   0%|                                                                  | 0.00/12.0 [00:00<?, ?eps/s]Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Scripts\senpcli.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\senpcli\main.py", line 913, in main
    initiate_download_pipeline(parsed, anime_details)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\senpcli\main.py", line 805, in initiate_download_pipeline
    handle_gogo(parsed, anime_details)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\senpcli\main.py", line 652, in handle_gogo
    hls_links = gogo_get_hls_links(download_page_links)
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\senpcli\main.py", line 577, in gogo_get_hls_links
    results = gogo.GetHlsLinks().get_hls_links(download_page_links, pbar.update_)
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\scrapers\gogo\hls.py", line 85, in get_hls_links
    hls_links.append(extract_stream_url(get_embed_url(eps_url)))
                     ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\USER\AppData\Local\Programs\Python\Python313\Lib\site-packages\senpwai\scrapers\gogo\hls.py", line 125, in extract_stream_url
    encryption_key, iv, decryption_key = (
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 0)

Notes:

  1. The same parameters have been tested on the pahe servers and they are working normally.
  2. This issue is a replicate of More sources. #78

Possible cause

https://anitaku.so has been moved to https://anitaku.bz/
Any link directing to former has been redirected.

Possible fixes

Update line to GOGO_HOME_URL = "https://anitaku.bz"

GOGO_HOME_URL = "https://anitaku.so"

Outcome:

Toggle to see the code
PS D:\foreign_repositories\Senpwai\senpwai\senpcli> python main.py -q 1080p -sd sub -s gogo "Gate - Thus the JSDF Fought There!"

                                   .__  .__
  ______ ____   ____ ______   ____ |  | |__|
 /  ___// __ \ /    \\____ \_/ ___\|  | |  |
 \___ \\  ___/|   |  \  |_> >  \___|  |_|  |
/____  >\___  >___|  /   __/ \___  >____/__|
     \/     \/     \/|__|        \/


No anime found with the title "Gate - Thus the JSDF Fought There!"
Here are the results:
1: Gate: Jieitai Kanochi nite, Kaku Tatakaeri
Pick one of the results by entering its number
> 1
Downloading to: C:\Users\Permafrost\Downloads\Anime\Gate - Jieitai Kanochi nite, Kaku Tatakaeri
Total download size: 2684 MB , go shower
Downloading Gate - Jieitai Kanochi nite, Kaku Tat...:   0%|                               | 0.00/12.0 [00:00<?, ?eps/s]
Downloading Gate - Jieitai Kanochi nite, Kaku Tat... E01:  72%|███████████████▏     | 195M/270M [03:00<01:15, 981kiB/s]
Downloading Gate - Jieitai Kanochi nite, Kaku Tat... E02:  92%|██████████████████▍ | 247M/268M [03:00<00:13, 1.49MiB/s]

@foxtbirdy foxtbirdy changed the title Unable to download from Gogoanime servers. Update gogo/constants.py to download from new Gogoanime server domain. Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@foxtbirdy and others