glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.
726 stars 84 forks source link

Failed to check URL with unicode characters #129

Closed TachyonicSpeed closed 1 month ago

TachyonicSpeed commented 1 month ago

I am trying to download from this original URL https://music.apple.com/jp/album/垂直落下/1648876478?i=1648876739&l=en-US

gamdl "https://music.apple.com/jp/album/%E5%9E%82%E7%9B%B4%E8%90%BD%E4%B8%8B/1648876478?i=1648876739&l=en-US"
[WARNING  19:06:20] mp4decrypt not found at "mp4decrypt", music videos will not be downloaded
[INFO     19:06:20] (URL 1/1) Checking "https://music.apple.com/jp/album/%E5%9E%82%E7%9B%B4%E8%90%BD%E4%B8%8B/1648876478?i=1648876739&l=en-US"
[ERROR    19:06:20] (URL 1/1) Failed to check "https://music.apple.com/jp/album/%E5%9E%82%E7%9B%B4%E8%90%BD%E4%B8%8B/1648876478?i=1648876739&l=en-US"
[INFO     19:06:20] Done (1 error(s))

Are such urls not supported?

glomatico commented 1 month ago

I couldn't reproduce your issue with the link you provided. Make sure you are using the latest version and try using a different a terminal.

gingerbeardman commented 1 month ago

How about the equivalent URL https://music.apple.com/jp/album/1648876478

vijaykrpp commented 1 month ago

How about the equivalent URL https://music.apple.com/jp/album/1648876478

Yes, the tool create issues when any characters other than english are there in the URL. usign latest version 2.2.6

image

gingerbeardman commented 1 month ago

@vijaykrpp i think it's more that the item that is not available in some store regions?

the original Japanese album you posted is not available in my region, only Japan.

but these two download just fine for me, using short or long links:

and

So to get region-specific tracks you will need to: