Jump to content

Spotify, YT Music Playlist Importing


Recommended Posts

2 hours ago, İbrahim Yiğit said:

Hi everyone, I wonder if it is possible to import Spotify playlist into PA.

I can get my Spotify playlist as TXT, CSV, JSON, XML file formats. Also I have the same musics on my phone's storage. Is it possible importing playlist into PA?

Thanks.

Not if the music files are from Spotify. These are proprietary and will only play in Spotify.

If you mean you have the same songs in your personal, local phone library, then you should be able to do something. But you will need to edit the playlist files to make sure the paths point to the local files, not Spotify.

Link to comment
Share on other sites

A local Playlist file (such as an M3U file) is simply a bunch of text lines which describe the precise folder details and filename of each audio file on your device's local storage. There is no information about the content of the file, just the exact filename.

If the exported data from Spotify (such as a CSV file) can be manipulated to create a match for your local filename structure, it could work. From a Google search, an example CSV export of three songs from Spotify might look like:

title;artist;album;isrc;addedDate;addedBy;duration;url
"Low Rider";War;"Why Can't We Be Friends";USRHD0610212;"2017-09-16 13:08";blackarcanis;191s;https://open.spotify.com/track/7Bz8yww6UMbTgTVLG6zbI4s
Roadgame;Kavinsky;OutRun;FRS711100690;"2017-09-16 13:08";blackarcanis;224s;https://open.spotify.com/track/7D1Dq1oEmlKNJltvzTL0wNs
Boom;"Snoop Dogg, T-Pain";Doggumentary;USCA21100279;"2017-09-16 13:08";blackarcanis;230s;https://open.spotify.com/track/31kOxwXPryPL2V4jAK50Dds

You could import that CSV file into a spreadsheet, and assuming your files are stored in a layout looking something like /Music/artistname/albumname/title.mp3, you could use simple string concatenation to build the necessary lines for making an M3U file, thus:

Music/War/Why Can't We Be Friends/Low Rider.mp3
Music/Kavinsky/OutRun/Roadgame.mp3
Music/Snoop Dogg, T-Pain/Doggumentary/Boom.mp3

You'd need to check for illegal characters such as ? or * and handle them manually. Technically for PA you only need the filename and final folder name, but other apps might need the full path.

So yes it could be done, but it would need a lot of things to line up perfectly.

Andre

Link to comment
Share on other sites

  • 3 weeks later...

@andrewilleythanks for the hint. This method does work very well for exporting playlists from Plex.

I use the Plex Plugin WebTools-NG to export my playlists to a CSV file, where the entries look like:

/volume1/Media/Music/ArtistName/Albumname/Track.(format)

then I changed the Plex specific prefix "/volume1/Media" to a prefix for the location of my music on my SDCard on my phone, and wound up with entries that look like

/disk/Media/Music/ArtistName/AlbumName/Track.(format)

Put that into a music folder called "PlexPlaylists" and rescanned. They all showed up in Poweramp.

 

Edited by Rob DeMillo
mistyped.
Link to comment
Share on other sites

@Rob DeMillo In fact, there's actually no need to edit the files at all, the exports from Plex should work fine as they are.

This is because PA tries to compensate for Playlist files imported from other file systems by ignoring all of the leading root path information and just checking for matches of the filename and the first level of folder name that it's contained within.

So in your example, /volume1/Media/Music/ArtistName/ would be ignored, and PA would check its library for an exact match for just the final Albumname/Track.(format)

Andre

Link to comment
Share on other sites

PA's fuzzy matching was implemented to cope with exactly the circumstances you describe. If matches for the full absolute path were required, playlists would never work when copied between different platforms and devices.

Very occasionally there might be some unique combination of folder/filename which creates an ambiguous mismatch, but it's extremely rare.

Andre

Link to comment
Share on other sites

  • 5 weeks later...

Sorry for very late answer. I had some examinations. Fortunately I passes all my exams :). Anyway my music folders are like that: 

"Artist's name"/ "song's name"

"Artist's name"/"CD1 Track2"

"Artist's name"/"Song's name-artist's name"

"Artist's name"/"Song's name(320)" 

...

So my song's file names and song's titles doesn't match lots of time. Lots of time they aren't same. So I think there isn't anything to do unless I change every song's name by one by. Am I true? I think I have to match every song's title and file name. Is that true?

Link to comment
Share on other sites

@İbrahim Yiğit Exactly correct.

As far as Poweramp is concerned, a Playlist is nothing more than a line-by-line list of audio filenames - each of which must exist on your device's local storage. The filename must be exactly the same as the text quoted in the playlist file, and the folder that contains it must also be an exact match for the first level of folder shown in the playlist. If those two conditions are met, the song will be visible and playable from that Playlist in Poweramp. Otherwise, you will see a placeholder showing the complete filename that it was looking for.

See my post above which discusses the information that Spotify (for example) exports, versus the required layout of a Playlist file. 

So while some automation of the process could be attempted, there will need to be a lot of manual tweaking to fit in with your folder structure. Perhaps making your folder structure more consistent might make that task easier too?

Oh, and congratulations on passing all your exams! 

Andre

Link to comment
Share on other sites

Ok, I found Name Mangler app to change all the music files with only 2 or 3 touches. 

You can set all the music file's name like "title" or "artist" - "title" ... but this time I have another problem. PA can't import non-English character include songs. My song's name are in Turkish and we have some characters like "ü,ğ,ç,ö,ş,ı,İ...". PA didin't take them to playlist. Also some of the songs have two artists. PA didin't take them also. But this topic got me  bored. Also it comes me long job. So I quit.  :d Thank you guys for your helps. 

Link to comment
Share on other sites

Yes, it would probably be a long job so might not be worth your time.

However PA does handle international characters in filenames - but you need to remember than Android's underlying filesystem (which was based on Linux) uses the international 'UTF-8' Unicode encoding standard.  This may not always match with a Windows-sourced text file that may be using the decades-old extended ASCII (8-bit, Latin-1) standard. That opens a whole new can of worms, but basically if you save your playlist file using the extender .M3U8 and create the content in a text editor that uses Unicode, you will find most filenames should match fine. Latin files may or may not work, depending on the character mapping.

Andre

Link to comment
Share on other sites

  • 7 months later...
  • 6 months later...

sry, I have no idea on your issue. But I'm really curious about how can you have your Spotify playlist on your phone's storage. I read lots of guide introducing a third-party tool, Spotify Music Unlocker. Have you heard about it? Is it possible to download my favorite Spotify playlist to MP3?

Link to comment
Share on other sites

  • 2 months later...
On 10/7/2023 at 12:31 AM, ChloeBrooke said:

sry, I have no idea on your issue. But I'm really curious about how can you have your Spotify playlist on your phone's storage. I read lots of guide introducing a third-party tool, Spotify Music Unlocker. Have you heard about it? Is it possible to download my favorite Spotify playlist to MP3?

Have you found an app or website that'll extract your spotify playlist so you can download them and store them on whatever? If so could I ask what it is? Having the same issue on my end.

Edited by RT-9501
Needed to add to it. I wasn't done when I originally clicked the submit button.
Link to comment
Share on other sites

@RT-9501 Anything that parses through your online Spotify playlists and then downloads all the music as stand-alone local MP3 files would almost certainly be in contravention of Spotify's terms and conditions. That's not to say it may not be techincally possible, but it's not really something we can discuss here.

Andre

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...