Jump to content

export / import Playlists on Emby server (TrueNAS)


KryptonicBe

Recommended Posts

KryptonicBe

Hi

I recently had to reinstall my Emby server (on TrueNAS), everything is up and running again but I'm missing 1 important playlist.
I have a backup (csv file) of the playlist, I tried to import it with Soundiiz but every time I import the playlist with 500 songs it creates a playlist with 1300 songs.
The csv file was created with Soundiizz and contains 500 songs/lines, not 1300 so my csv file looks valid.
I could reach out to Soundiizz support (will do later) but I'm wondering if there is an easier way to get my playlist back since I still have all the data of my previous Emby server.

Does anyone know where the standard playlists are saved (on Emby server for TrueNAS) or maybe if there is an easy way to import csv files (without 3rd party tools)? @cayars

Link to comment
Share on other sites

  • 2 weeks later...

What does the file look like?
Can you post it?
Depending on the way the paths look you may be able to drop this into your media library letting Emby find it during scanning.

Link to comment
Share on other sites

KryptonicBe
18 hours ago, Luke said:

@KryptonicBe we don't currently have a playlist import/export function but you should be able to locate them pretty easily by following this guide:

https://support.emby.media/support/solutions/articles/44001849016-playlist-manual-migration

Please let us know if this helps. Thanks !

Hi Luke

Thanks for the guide, I was able to find the location of the playlist folder.
I also noticed that the location of the playlists is shown when you delete a playlist.

image.png.9524b40c35e25afc4e04fa635fa6b025.png

I tried to import a playlist from my old server to the same folder in the new Emby server.

Unfortunately importing the folder with the xml file of a playlist does not seem get the playlist back after a reboot.

I also tried to copy a playlist on my new Emby server and paste the copy in the same directory (I renamed the folder and also the title of the playlist in the xml file).

Same problem here, there is no playlist "Trance2" showing up, I guess the playlists are more than just the xml files.

image.png.407bb051291b2a0ae46cad145a576bfc.png

image.png.2c6ee57ad1e5147ef3a7ea1ba74e8f82.png

Edited by KryptonicBe
Link to comment
Share on other sites

KryptonicBe
18 hours ago, cayars said:

What does the file look like?
Can you post it?
Depending on the way the paths look you may be able to drop this into your media library letting Emby find it during scanning.

Hi, I added the csv file here, you should be able to download it.

FYI: I replaced my public ip and portnumber in the file before uploading it, the rest of the file was not changed.
 

Emby playlist Evatchki-Youtube with LP-.csv

Link to comment
Share on other sites

Happy2Play

Will have to look for other topic but playlists don't work with urls.

 

Link to comment
Share on other sites

KryptonicBe
30 minutes ago, Luke said:

Hi, you need to run a library scan if you make any manual changes to that folder.

Unfortunately this does not help.
I also tried to create a new playlist (via the UI) with 2 songs and add a 3rd song to the playlist by adding a new line in the xml file but the new song is not showing up after a library scan or a reboot of the server. 

  <PlaylistItems>
    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Avancada - (Motherfucker) Go.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Catherine Ferry - 1,2,3.mp3</Path>
    </PlaylistItem>

    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Katy B - Easy Please Me.mp3</Path>
    </PlaylistItem>

  </PlaylistItems>
</Item>


If I add a 4th song to the playlist (via the UI) and check the XML file of the playlist, the 4th  song is added but 3th the song (I manually added to the XML) file is gone.
I'm no expert but it looks like the songs in the playlists (xml files) are loaded from another (db?) file, so modifying the xml file alone does not change the playlists.

Link to comment
Share on other sites

Happy2Play
2 hours ago, KryptonicBe said:

Unfortunately this does not help.
I also tried to create a new playlist (via the UI) with 2 songs and add a 3rd song to the playlist by adding a new line in the xml file but the new song is not showing up after a library scan or a reboot of the server. 

  <PlaylistItems>
    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Avancada - (Motherfucker) Go.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Catherine Ferry - 1,2,3.mp3</Path>
    </PlaylistItem>

    <PlaylistItem>
      <Path>/mnt/Storage1/iocage/jails/EmbyS/root/media/Emby/Emby/Katy B - Easy Please Me.mp3</Path>
    </PlaylistItem>

  </PlaylistItems>
</Item>


If I add a 4th song to the playlist (via the UI) and check the XML file of the playlist, the 4th  song is added but 3th the song (I manually added to the XML) file is gone.
I'm no expert but it looks like the songs in the playlists (xml files) are loaded from another (db?) file, so modifying the xml file alone does not change the playlists.

Not sure I follow.

All music exists on Emby server.

Manually edited xml added a track

Scanned Playlists library

the added track appeared in playlist

Spoiler

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <Added>2/3/2023 8:46:54 AM</Added>
  <LockData>false</LockData>
  <LocalTitle>TEST</LocalTitle>
  <SortTitle>TEST</SortTitle>
  <RunningTime>13</RunningTime>
  <Genres>
    <Genre>Acoustic</Genre>
    <Genre>Oldies</Genre>
    <Genre>Metal</Genre>
  </Genres>
  <PlaylistItems>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Ed Sheeran\+\02 Drunk.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Various Artists\lovesongs1\105_tina_charles_-_everlasting_love.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Anathema\A_Vision_Of_A_Dying_Embrace-FLAC\02 Shroud of Frost.flac</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\AC_DC\Power Up (2020)\03 Shot in the Dark.flac</Path>
    </PlaylistItem>

  </PlaylistItems>
</Item>

4.7.11.0

Edited by Happy2Play
Link to comment
Share on other sites

KryptonicBe
12 hours ago, Happy2Play said:

Not sure I follow.

All music exists on Emby server.

Manually edited xml added a track

Scanned Playlists library

the added track appeared in playlist

  Hide contents

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <Added>2/3/2023 8:46:54 AM</Added>
  <LockData>false</LockData>
  <LocalTitle>TEST</LocalTitle>
  <SortTitle>TEST</SortTitle>
  <RunningTime>13</RunningTime>
  <Genres>
    <Genre>Acoustic</Genre>
    <Genre>Oldies</Genre>
    <Genre>Metal</Genre>
  </Genres>
  <PlaylistItems>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Ed Sheeran\+\02 Drunk.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Various Artists\lovesongs1\105_tina_charles_-_everlasting_love.mp3</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\Anathema\A_Vision_Of_A_Dying_Embrace-FLAC\02 Shroud of Frost.flac</Path>
    </PlaylistItem>
    <PlaylistItem>
      <Path>C:\Users\Media\Desktop\Videos\Music - emby metadata\AC_DC\Power Up (2020)\03 Shot in the Dark.flac</Path>
    </PlaylistItem>

  </PlaylistItems>
</Item>

4.7.11.0

Hi Happy2Play

Thanks for the help, I found a solution for my playlist, i had to rescan the metadata as well for the playlist, now I can see all the tracks I imported.
There only 1 small problem left I can't solve (not a big problem), I also imported the music genres but I only see 1 genre displayed in the top of my playlist.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <Added>3/17/2023 10:00:00PM</Added>
  <LockData>false</LockData>
  <LockedFields>Name|SortName</LockedFields>
  <LocalTitle>Evatchki-Youtube</LocalTitle>
  <SortTitle>Evatchki-Youtube</SortTitle>
  <RunningTime>2281</RunningTime>

  <Genres>
    <Genre>Pop</Genre>
    <Genre>Disco</Genre>
    <Genre>Soul</Genre>
    <Genre>Blues</Genre>
    <Genre>Dance</Genre>
    <Genre>Club-Classics</Genre>
    <Genre>Pop-Rock</Genre>
    <Genre>Electronic</Genre>
    <Genre>Progressive House [Promo]</Genre>
    <Genre>Dance-Club</Genre>
    <Genre>Rap &amp; Hip-Hop-FR</Genre>
    <Genre>Pop-NL</Genre>
    <Genre>RnB-Soul</Genre>
    <Genre>RnB</Genre>
    <Genre>Pop-FR</Genre>
    <Genre>Progressive House</Genre>
    <Genre>Rap &amp; Hip-Hop</Genre>
    <Genre>Jazz</Genre>
    <Genre>RnB-Dance</Genre>
    <Genre>Slow</Genre>
    <Genre>Elektrohouse</Genre>
    <Genre>Soundtrack-TV-Movie</Genre>
    <Genre>Rock</Genre>
    <Genre>Drum &amp; Bass</Genre>
    <Genre>Slow-FR</Genre>
    <Genre>Trance</Genre>
    <Genre>Dubstep</Genre>
    <Genre>Metal</Genre>
    <Genre>Hardstyle</Genre>
    <Genre>Jump</Genre>
    <Genre>Dance-NL</Genre>
    <Genre>Jump Classic</Genre>
    <Genre>Metal &amp; Hard Rock</Genre>
  </Genres>

  <PlaylistItems>

Link to comment
Share on other sites

KryptonicBe
2 hours ago, KryptonicBe said:

Hi Happy2Play

Thanks for the help, I found a solution for my playlist, i had to rescan the metadata as well for the playlist, now I can see all the tracks I imported.
There only 1 small problem left I can't solve (not a big problem), I also imported the music genres but I only see 1 genre displayed in the top of my playlist.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <Added>3/17/2023 10:00:00PM</Added>
  <LockData>false</LockData>
  <LockedFields>Name|SortName</LockedFields>
  <LocalTitle>Evatchki-Youtube</LocalTitle>
  <SortTitle>Evatchki-Youtube</SortTitle>
  <RunningTime>2281</RunningTime>

  <Genres>
    <Genre>Pop</Genre>
    <Genre>Disco</Genre>
    <Genre>Soul</Genre>
    <Genre>Blues</Genre>
    <Genre>Dance</Genre>
    <Genre>Club-Classics</Genre>
    <Genre>Pop-Rock</Genre>
    <Genre>Electronic</Genre>
    <Genre>Progressive House [Promo]</Genre>
    <Genre>Dance-Club</Genre>
    <Genre>Rap &amp; Hip-Hop-FR</Genre>
    <Genre>Pop-NL</Genre>
    <Genre>RnB-Soul</Genre>
    <Genre>RnB</Genre>
    <Genre>Pop-FR</Genre>
    <Genre>Progressive House</Genre>
    <Genre>Rap &amp; Hip-Hop</Genre>
    <Genre>Jazz</Genre>
    <Genre>RnB-Dance</Genre>
    <Genre>Slow</Genre>
    <Genre>Elektrohouse</Genre>
    <Genre>Soundtrack-TV-Movie</Genre>
    <Genre>Rock</Genre>
    <Genre>Drum &amp; Bass</Genre>
    <Genre>Slow-FR</Genre>
    <Genre>Trance</Genre>
    <Genre>Dubstep</Genre>
    <Genre>Metal</Genre>
    <Genre>Hardstyle</Genre>
    <Genre>Jump</Genre>
    <Genre>Dance-NL</Genre>
    <Genre>Jump Classic</Genre>
    <Genre>Metal &amp; Hard Rock</Genre>
  </Genres>

  <PlaylistItems>

Hi, you can ignore my last question, all music genres did show up after another refresh of the metadata, all problems solved now. 😎

  • Like 1
  • Thanks 1
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...