MovieFan's Database Tool for Plex

I've opened in Notepad and Notepad++ but don't see the extra "a" - but it is there in the pastebin version.

Odd.

Notepad++ shows it's UTF-8

I cut the playlist down to just the first song but it still says it's imported but it doesn't show in playlists.

Try this version of the playlist I created from the pastebin version.  It works fine for me. Remove the .txt part first.

Still no joy for me. There must be something wrong with my setup.

Are there any other steps?

What version of the script are you running?

Here is the latest version of my tool that I use.  Not really ready for distribution, but maybe it will help you.  The debug feature is set to true.  Make sure to turn it back to false if this works out.

Many thanks but getting the same issue. Where can I find the debug?

I should have mentioned that I'm using WHS2011 on my server. I've set the security on all the folders though.

I've done some more testing:

I installed PMS on a Windows 7 laptop. The only library was one folder with one song, which had an m3u with just that entry.

Running the script gives me the message that it is successful but no playlists show in PMS, nor do I get the playlist copy in the plex scripts folder.

Are there any other prerequisites I'm missing?

Plex does need to be able to access the windows command prompt and the sqlite3 executable.  The script creates a settings.ini file where this info is stored.  Check and see if the file locations match your setup.

Yes, the locations in the settings.ini are correct. On my Windows 7 setup I can see teh cmd window briefly flash up when the script runs too.

No other prerequisites needed?

No other requirements.  The scripting program is just 1 file as is sqlite3.  That is why I like using command line tools, no dependencies.

1 last thing to try.  In the script, near the top, there is a line that says something = "/c".  I am not in front of my computer so I forget the variable I used, but there should only be 1 instance of this.  Change it to "/k".  This will cause the command line screens to stay open after it issues a command.  This way you can see if there are any errors.  You will need to manually close out the window to continue the script, but at least you can look for errors.

Another user had a similar problem and it was due to a corrupt database.  But if this did not work on your new test setup on a new database, I do not know why it would not work.  Like I said, on my end, I tested with your playlist and it generated all the temp files correctly.  When I made up a file to match a file in your list, it worked and successfully added that file to a playlist too.

Thanks for sticking with me!

I changed the /k and now I get an error in the cmd window.

I double click the mscr, click playlists and then the cmd window opens and has this error message:

'D:\Music\Plex is not recognised as an internal or external command, operable program or batch file.

When I close the cmd window the list to List, rename etc. playlists is open.

Ok.  I think I know the problem.  Here try this version.  Remove the .txt from the filename.

Thanks for that, but tried and got the same result.

Ok, I figured out the problem.  The script has to be run from a path that has no spaces in it.  I need to find a fix but for now move the script and its support files to a folder that does not have a space in the name and it should work.

Ok.  Figured it out.  Try this version.

That worked! Great stuff, this means I can import the playlists I spent hours on in Mediamonkey :)

One feature request if I may :)

I spent some time creating a playlist in plex (just to have something in there). How about a function to export to m3u?

Thanks again for this great script!

Sure.  I can do that.  Good idea.  will include in next version.

hej,

first many thanks to MovieFan for your efforts to make a feature work although the *Plex*Team* should have done this already!

Importing existing playlists was my first thought when I read the annunciation of playlists and I was quite disappointed when I realized that I couldn't do that and would have fiddle together my playlists per web app in the PMS itself again, which is a pain in the ass. The iTunes thingy is worthless for me as I don't have iTunes installed (and will not for sure!).

I'm specially interested in:

I'm trying to run the converter on my Windows computer to import a .m3u playlist to my Linux Plex Server, on another computer.

Could you please add an option to select which database file to use and remove the checker that's seraching for files locally on the computer the script is running on?

My setup is: PMS (v0.9.10.0) running on a dedicated Linux server, home PC is Win 7, connected per ssh and samba (have also XP + Win8 + OSX as VM's). Mainly using chrome web app.

I've already read this complete thread but it's not clear to me what I can do/how I can run your script @home to import playlists into my dedicated Linux PMS. (And no, I haven't even tried to run the script because I don't know how.) I mean, shall I download the complete db of my PMS to my home PC, then run the script and upload it again?

I would do that if it helps, of cause.

But, IMHO couldn't it be better (for us Linux users) to have this script as a command line thingy on the server itself. Would this be possible, or, am I completely wrong thinking?

Anyway, I'll give it a try the next days when I've get the time.

Greetings and thumbsup from Frankfurt, DE

gpm