glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with incomplete file names after downloading

bdim404 opened this issue · comments

commented

Hello, I've been working on secondary development through your project recently, and I've noticed that m4a files after downloading through gamdl are truncated if the music name is too long.

The music I tested is:
https://music.apple.com/us/album/1-800-273-8255-feat-alessia-cara-khalid/1456232697?i=1456232983
After downloading it is stored as . /Apple Music/Logic/Everybody (Deluxe Edition)/10 1-800-273-8255 (feat. Alessia Car.m4a

So when I get that song title from Apple Music, it doesn't look up from the file I've already downloaded, because its correct song title is: 1-800-273-8255 (feat. Alessia Cara & Khalid).m4a

# your file name
file_path = "./Apple Music/Logic/Everybody (Deluxe Edition)/10 1-800-273-8255 (feat. Alessia Car.m4a"

# the right file name
file_path = "/Apple Music/Logic/Everybody (Deluxe Edition)/1-800-273-8255 (feat. Alessia Cara & Khalid).m4a"

Can be reproduced:

image

Seems both the folder name and file name are truncated.

That's the expected behavior if you don't change the truncate configuration. Take a look on the README file for more details.

Ah, thanks for your reply :)

commented

That's the expected behavior if you don't change the truncate configuration. Take a look on the README file for more details.

Thx!