yask123 / Instant-Music-Downloader

🎷 Downloads Music From The Web
http://iyask.me/Instant-Music-Downloader/
1.41k stars 161 forks source link

Fix the name of the song after downloading #89

Open atuljangra opened 8 years ago

atuljangra commented 8 years ago

Suppose I download : Fun: we are young. It's a song in mp3 format. So it's name shouldn't be Fun. - We Are Young ft. Janelle Monáe [OFFICIAL VIDEO].mp3 It is problematic while syncing with last.fm and the tags are all messed up. I tried to use fixalbumart but it doesn't work well too.

jainaman224 commented 8 years ago

How you want your file name to be...? Is it ok if it is same as you have searched for...?

arsalansaad commented 7 years ago

i would like to work on this. should i use the same file name as the user searched for? @yask123

yask123 commented 7 years ago

Nopes, try to guess the correct song name using song title. Clean the title name (Removing artist name, ..other irrelevant stuff from the title)

swapnil-ss commented 7 years ago

I would like to work on this so if you could suggest where to start as I have already installed the packages and gone through other descriptions till now.

yask123 commented 7 years ago

@swapnil-ss Have a look at this file in this line https://github.com/yask123/Instant-Music-Downloader/blob/master/instantmusic-0.1/bin/instantmusic#L163

I am trying to guess the file name of the song to load it for eyed3.

Once you know the file name, you can easily change the file name : http://stackoverflow.com/questions/2759067/rename-files-in-python

arsalansaad commented 7 years ago

@yask123 can we not use the search query as the filename of the song? it will be easier to implement and more appropriate for the user itself