Import iTunes playlist?

Need help? Post your questions here.

Moderator: moderators

Import iTunes playlist?

Postby gurutech » Wed Dec 05, 2012 5:37 am

I'm trying to import a few "genius" playlists that I have created in iTunes into Subsonic, however when I do this, it tells me that the songs cannot be found that are listed in the playlist.

I can't figure out if it's because of the format that iTunes is using (even though I am exporting into .m3u and .m3u8 formats which appear to be supported by SS), or if it's because the "path" to the MP3 files are not the same on my iTunes machine as they are on my SS machine.

Theoretically, I would think that SS would only extract the name of the MP3 file from the playlist file, and look it up in its database to find the actual path, then import that. Is there any way to properly import playlists such as this?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Import iTunes playlist?

Postby gurutech » Wed Dec 05, 2012 5:48 am

OK, did a little research on this, it seems that iTunes exports its paths relative to how the song(s) is/are captured, while SS imports files based on the relative path to the "Media Folders" defined in settings.

Therefore, it becomes necessary to do the following:

Open the .m3u8 file in Notepad
Replace all \ with /
Replace "//Server/Path/Music/Artist/Song Title.MP3" with "/media/Music/Artist/Song Title.MP3" for each file in the list. (I just used the "Find/Replace" feature in Notepad and did "Replace All" for each of these two steps.)

I'm sure someone could figure out a way to create a script to do this automatically, but would it be something that could be done, or would it be easier to incorporate something better into SS to sort of strip the //server/path part of the file name and replace it with what is defined in the Media Folders settings?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Import iTunes playlist?

Postby freeuser » Thu Jun 20, 2013 9:28 pm

Thank you!
freeuser
 
Posts: 1
Joined: Thu Jun 20, 2013 9:23 pm

Re: Import iTunes playlist?

Postby gurutech » Fri Jun 21, 2013 1:03 am

Posted a script I wrote over on the Madsonic forum: http://forum.madsonic.org/viewtopic.php?f=29&t=553

Just copy the code and save to the appropriate files as indicated, then make changes within each file to work with your settings.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Import iTunes playlist?

Postby HalBup » Wed Apr 09, 2014 8:55 am

gurutech wrote:OK, did a little research on this, it seems that iTunes exports its paths relative to how the song(s) is/are captured, while SS imports files based on the relative path to the "Media Folders" defined in settings.

Therefore, it becomes necessary to do the following:

Open the .m3u8 file in Notepad
Replace all \ with /
Replace "//Server/Path/Music/Artist/Song Title.MP3" with "/media/Music/Artist/Song Title.MP3" for each file in the list. (I just used the "Find/Replace" feature in Notepad and did "Replace All" for each of these two steps.)

I'm sure someone could figure out a way to create a script to do this automatically, but would it be something that could be done, or would it be easier to incorporate something better into SS to sort of strip the //server/path part of the file name and replace it with what is defined in the Media Folders settings?


I'm sorry but it fu***** doesn't work on my configuration ....
1 - the exported *.m3u8 playlist already contains the correct full path to the song (ie /Volume/Multimédia/iTunes média/Music/toto/tata/titi.mp3) without any // or ⧹
2 - It worked only once when replacing the single / at the very first beginning of the path by a double // and I'm totally unable to redo it :twisted: :twisted:
3 - are there maybe hidden chars ?

It's so frustrating, I've got so many playlists ......


Any idea ?

Thanks
HalBup
 
Posts: 3
Joined: Fri Dec 06, 2013 8:11 am

Re: Import iTunes playlist?

Postby gurutech » Wed Apr 09, 2014 8:35 pm

My configuration is a little different anyway - I do have a script that will perform those steps automatically for me, but you would need to change the script around a little to match with your paths and such.

I run my iTunes on a Win 8.1 (previously Win7) VM, and my Madsonic on a Centos VM (on the same physical box).

That is why the path that is created when I export an iTunes playlist is different than the path that Madsonic should be importing, based on the media folders I have defined; and the fact that there is a "conversion" between Windows and Centos (Linux).
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Import iTunes playlist?

Postby HalBup » Sun Apr 13, 2014 8:36 pm

I guess I'll have to write an AppleScript to perform those replacements ....
But I still don't understand why it doesn't work with the original exported playlist ... Must be some hidden chars :cry: :cry:
HalBup
 
Posts: 3
Joined: Fri Dec 06, 2013 8:11 am

Re: Import iTunes playlist?

Postby gurutech » Mon Apr 14, 2014 4:31 am

Check the paths again. I believe additional had drives or drive mappings are listed under /Volumes/ on a MAC. Make sure that's in your "convert to" path. You should be able to open a Terminal window to get the correct information.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 60 guests