Open moore-bryan opened 7 years ago
That is very strange. There is no apparent reason why that would happen.
1) What operating system are you on?
2) You are using python3, yes? (It shouldn't be able to even compile on python2, so answer should be yes)
3) Add on line 48 of PlexPlaylistImporter.py (just above "#Confirm the playlist path"")
print(args)
and let me know what it says.
I should be able to answer quicker now that I am off a very time intensive project.
If I don't hear anything more on this in 3 days I'll be closing it.
Sorry, life's gotten in the way and I haven't been able to work on this. I'll post later today results.
No problem at all. I'm often in the same boat. Just trying to clean things up on this project. I know you're still there so I'll leave this around for a while until you can respond properly.
Still errors out...
bryan@lmde:~/PlexPlaylistImporter$ python PlexPlaylistImporter.py /media/Seagate/Music/Playlists/WIP.m3u WIP
File "PlexPlaylistImporter.py", line 109
print("Playlist name (Cannot be blank): ", end="")
^
SyntaxError: invalid syntax
Oh, haha. You are seeing source code there, not an actual error message. If I recall, that is what happens if you run through python2. It requires python3. This should fix your problem. If I don't hear in 2 days I'll close the topic.
Silly me... forgot on Ubuntu I had to run it as "python3" and not just "python."
Complains about not being able to "guess" my Plex home dir and needing me to pass that as a third parameter.
I can't remember if it was OSX or linux or both, but I never got the code hammered down to properly find the plex directories across all systems. There are instructions with the --help switch.
Now, it complains about not being able to open the db file... it even tried sudo-ing, no love.
Thanks for your help; any ideas?
I was able to get it to--seemingly--run, although it complained about one of the songs in the playlist not being in the database (which it is); however, I don't see any way to make the result show up in Plex...
Exact errors are always helpful.
Sorry, there weren't any exact errors; the script just exited and said /media/Seagate/Music/Downward.ogg does not exist when it does.
If you can just paste the exact output...
File not found in DB: /media/Seagate/Music/Angels_&_Airwaves/I-Empire/06.Secret_Crowds.ogg
I’m a GUI developer and I had been searching for months for a way to add external playlists to Plex. Finally found your utility and I added it to a custom Mp3 playlist create GUI I have been working on. I can now easily create playlists with my GUI and add them to Plex in seconds! Thanks so much for you work in this area! FYI – here’s a screenshot of the GUI.
@CyberJafo glad you got use out of it :-D
No matter what flags I use or what I enter, the script keeps telling me the playlist name cannot be blank; it's not.
For example, "python PlexPlaylistImporter.py /media/Seagate/Music/Playlists/WIP.m3u WIP" returns the error. I'm sure it's my own stupid fault and would appreciate a nudge--or shove--in the correct direction.