dakusan / PlexPlaylistImporter

Import playlists into Plex
Other
81 stars 18 forks source link

"Playlistname cannot be blank" #15

Open Sourdoughbiker opened 6 years ago

Sourdoughbiker commented 6 years ago

Firstly I am not any sort of programmer and am sort of feeling my way with Python... I am trying to run the script on my Synology NAS (have installed Python3 app) and am constantly getting the following root@WilsonSynology:/volume1/music/Converter/PlexPlaylistImporter# python PlexPlaylistImporter.py /volume1/music/Converter/PlexPlaylistImporter/paul_canada.m3u Paul File "PlexPlaylistImporter.py", line 108 print("Playlist name (Cannot be blank): ", end="") ^ SyntaxError: invalid syntax

As far as I can see I have parsed the existing playlist file path (/volume1/music/Converter/PlexPlaylistImporter/paul_canada.m3u) and also the new plex playlist file (Paul). The error message seems to refer to the new PLex Playlist name not being recognised.

Can anyone help me?

Sourdoughbiker commented 6 years ago

OK - so I read some of the other issues here and saw using Ubuntu you have to run as python3. The error does not reappear - a different one does but I will try to solve that one before coming back here! Sorry to bother...

Sourdoughbiker commented 6 years ago

Got it to work finally just as a result of my python ignorance. To clarify, the script can be run on the Synology and successfully works on a fairly small playlist. Now to amend the script slightly to run through a folder containing a number of playlists and convert each one in turn...

Doonut commented 6 years ago

please update us on your progress, i need a script that detects a change in my playlist folder, auto converts relative paths to actual ones, and auto imports them into plex.