Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist does not show in Plex #11

Closed
deheingit opened this issue Nov 18, 2019 · 11 comments
Closed

Playlist does not show in Plex #11

deheingit opened this issue Nov 18, 2019 · 11 comments

Comments

@deheingit
Copy link

Hi,

first of all: Thanks for writing this. I would love to use it to sync my playlists with Musicbee.

I've got an issue with running the script on my QNAP. After running it the Playlist from Musicbee does not show up in Plex.

This is a log of the run:

[/share/Music/PPP] # /share/CE_CACHEDEV1_DATA/.qpkg/Python3/src/bin/python3 PPP.py

PPP Copyright (C) 2019 XDGFX
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions

I'll ignore "\\192.168.2.150\Music" from local playlists and "/share/CE_CACHEDEV1_DATA/Music" from Plex playlists

Running PPP at 2019-11-18 13:54:29

Backing up local playlists...

Backed up local playlists to local_backups/2/

Getting playlists from http://192.168.2.150:32400/playlists/?X-Plex-Token=73hqvjcB-qso9zbw95vw

Accessing http://192.168.2.150:32400/playlists/23010/items?X-Plex-Token=73hqvjcB-qso9zbw95vw
Saving Plex playlist: Watch with Annika

Copying local playlist: /share/CE_CACHEDEV1_DATA/Music/MusicSync/Playlists/Test.m3u
Found new Plex playlist: Watch with Annika.m3u
Found new local playlist: Test.m3u
Sending updated playlist to Plex: Watch with Annika.m3u

Sending updated playlist to Plex: Test.m3u

Copying updated playlist to local playlists: Test.m3u
Complete!

[/share/Music/PPP] #

My structure is like this:
My Music files are on a NAS Share \192.168.2.150\Music Which is the prepend Musicbee uses when exporting a m3u playlist:

\\192.168.2.150\Music\Kinder\Music\Das Dschungelbuch (Original Soundtrack)\05 Probiers mal mit Gemütlichkeit.m4a
\\192.168.2.150\Music\Kinder\Music\Giraffenaffen\Giraffenaffen 1\03 Hätt' ich Dich heut' erwartet (fe.mp3
\\192.168.2.150\Music\Kinder\Music\Giraffenaffen\Giraffenaffen 1\11 Die Affen rasen durch den Wald.mp3

Seen from the NAS/Plex

  • the Music is in /share/CE_CACHEDEV1_DATA/Music
  • the Playlists are in /share/CE_CACHEDEV1_DATA/Music/MusicSync/Playlists
  • PPP is in /share/CE_CACHEDEV1_DATA/Music/PPP

But after the run the test.m3u looksgood again (so the replacement worked) but I don't see any new playlists in Plex.

  • 2 thoughts: Should the playlist even show up if the files names are wrong?
  • The files all have a "" from windows in the m3u which does ont corrospond to the linux "/" - is that an issue?

Thanks again

@deheingit
Copy link
Author

I tried one more thing and eddited the playlist manually:

/share/CE_CACHEDEV1_DATA/Music/Kinder/Music/Das Dschungelbuch (Original Soundtrack)/05 Probiers mal mit Gemütlichkeit.m4a
/share/CE_CACHEDEV1_DATA/Music/Kinder/Music/Giraffenaffen/Giraffenaffen 1/03 Hätt' ich Dich heut' erwartet (fe.mp3
/share/CE_CACHEDEV1_DATA/Music/Kinder/Music/Giraffenaffen/Giraffenaffen 1/11 Die Affen rasen durch den Wald.mp3

and set the prepends to '' - the playlist still does not show up

@deheingit
Copy link
Author

Sorry one more thing i tested. I created a playlist with the same name in Play and added a song. This song now shows up in the m3u playlist, but no new songs in plex

@XDGFX
Copy link
Owner

XDGFX commented Nov 18, 2019

Thanks for bringing this up! I don't really have any spare time at the moment but I'll look into it as soon as I'm able :)

@deheingit
Copy link
Author

Ok, thank you. Just to make sure: The script is still working with current version of plex on you installation?

@cswrd
Copy link

cswrd commented Dec 8, 2019

Same issue here. Plex Version 1.18.2.2058 running on a QNAP TS-253A.

@dan0v
Copy link
Contributor

dan0v commented Dec 15, 2019

Same issue here. Plex version 1.18.2.2058.

@XDGFX
Copy link
Owner

XDGFX commented Dec 22, 2019

Hi all,

I've just done a major re-write on the code, would you be able to download the latest release (v3.0.0) and give that a go? I've hopefully fixed the unix / Windows paths but I have limited machines to test it on.

Cheers!

@dan0v
Copy link
Contributor

dan0v commented Dec 29, 2019

Unfortunately it still seems that while the Plex logs indicate everything should have worked, the added playlists are not visible in Plex, even after the rewrite. Playlists which are already in Plex are correctly downloaded, as well as merged into the local playlists, but any songs that should have been pushed to Plex by the local playlist do not appear in the Plex playlist.

example logs:

Auth: authenticated user 1 as dan0v

Request: [192.168.0.70:45184 (Subnet)] POST /playlists/upload?sectionID=3&path=%2Fmnat%2Fncdata%2Fdan0v%2Ffiles%2FMusic%2FPlexPlaylistPusher%2F.tmp%2Fplex%2FCity+Pop.m3u (5 live) TLS GZIP Signed-in Token (dan0v)

Completed: [192.168.0.70:45184] 200 POST /playlists/upload?sectionID=3&path=%2Fmnat%2Fncdata%2Fdan0v%2Ffiles%2FMusic%2FPlexPlaylistPusher%2F.tmp%2Fplex%2FCity+Pop.m3u (5 live) TLS GZIP 0ms 195 bytes (pipelined: 1)

edit
I've found this might be an issue with how paths are being handled, but I still need to look into it, so I'll update if I find anything concrete.

@XDGFX
Copy link
Owner

XDGFX commented Dec 29, 2019 via email

@dan0v
Copy link
Contributor

dan0v commented Dec 29, 2019

No, mnat is not correct - I spotted that right after posting my comment and have since corrected the path in my variables file. Unfortunately I still had no success after fixing that mistake - the logs would show success, with no playlists appearing in the UI.

I just went back to take a look, ran the script again with no changes, and out of nowhere all of my playlists appeared immediately in the Plex web interface! Is it possible that there's some kind of background library refresh process that needs to be triggered for playlists to show up? I had tried refreshing my music library before and it didn't seem to work.

In conclusion, thank you, the rewrite DOES fix PPP, and it's working perfectly now - I still have no idea why it wasn't working before.

@XDGFX
Copy link
Owner

XDGFX commented Dec 29, 2019

Sometimes it seems to require a refresh of the page in your browser before playlists show up (not necessarily just clicking home and then back to playlists). However when I was writing the original code they would sometimes update while I was on the playlists page (they 'flipped' round in turn to indicate they had updated)

Glad you got it working! I'll close the issue but feel free to let me know if it doesn't work for anyone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants