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

Error on downloading video from different region (not US) #160

Open
CyberbobGR opened this issue Jan 8, 2025 · 0 comments
Open

Error on downloading video from different region (not US) #160

CyberbobGR opened this issue Jan 8, 2025 · 0 comments

Comments

@CyberbobGR
Copy link

First of all, thank you for this amazing program.
I have the following issue. There are some videos that are not available in the US, however there are available in different regions (for example Japan, UK or Greece). These videos refuse to download.

Examples:
https://music.apple.com/gb/music-video/xeirovomvida/1784433812
https://music.apple.com/jp/music-video/alitheia/1782316213
https://music.apple.com/gr/music-video/oaed/1779294007

The error:

gamdl https://music.apple.com/gb/music-video/xeirovomvida/1784433812
[INFO 06:12:46] Starting Gamdl
[INFO 06:12:47] (URL 1/1) Checking "https://music.apple.com/gb/music-video/xeirovomvida/1784433812"
[ERROR 06:12:48] (URL 1/1) Failed to check "https://music.apple.com/gb/music-video/xeirovomvida/1784433812"
Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\apple_music_api.py", line 79, in _check_amp_api_response
response.raise_for_status()
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://amp-api.music.apple.com/v1/catalog/US/music-videos/1784433812?l=en-US&include=albums

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\cli.py", line 467, in main
download_queue = downloader.get_download_queue(url_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\downloader.py", line 140, in get_download_queue
return self._get_download_queue(url_info.type, url_info.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\downloader.py", line 166, in _get_download_queue
download_queue.tracks_metadata = [self.apple_music_api.get_music_video(id)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\apple_music_api.py", line 141, in get_music_video
self._check_amp_api_response(response)
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\apple_music_api.py", line 87, in _check_amp_api_response
self._raise_response_exception(response)
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\gamdl\apple_music_api.py", line 73, in _raise_response_exception
raise Exception(
Exception: Request failed with status code 404: {"errors":[{"id":"GTMRHS5PODOJIVDYHEO4UGIKBU","title":"Resource Not Found","detail":"Resource with requested id was not found","status":"404","code":"40400"}]}
[INFO 06:12:48] Done (1 error(s))

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

1 participant