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

Windows support? #10

Open
scjohnson1988 opened this issue Jan 6, 2023 · 4 comments
Open

Windows support? #10

scjohnson1988 opened this issue Jan 6, 2023 · 4 comments

Comments

@scjohnson1988
Copy link

Does this script work on databases in the Windows version of Plex? It took me a bit of troubleshooting/getting the progressbar and running everything with python2, but I am getting the below error running the script

Analyzing Plex database: Traceback (most recent call last): File "./perplex.py", line 125, in <module> movies = build_db(args.plex) File "./perplex.py", line 43, in build_db year = row[2].split('-')[0]
I copied the database onto a Raspberry pi and re-ran it, but I'm getting the same errors.

@rieck
Copy link
Owner

rieck commented Jan 6, 2023

Could you provide the full traceback of the Python error? It appears that the issue is occurring on line 43, but the error message is not visible.

@rieck
Copy link
Owner

rieck commented Jan 6, 2023

As a side note, I am not actively maintaining this code as it has been inactive for years. If a significant change is required, I may not have the time to address it. Hopefully, only a quick fix is necessary.

@scjohnson1988
Copy link
Author

I'm not very familiar at all with Python, so I just captured the command and output. Image below is what I'm getting.

https://imgur.com/a/mZwYv0w

@windowslucker1121
Copy link
Contributor

windowslucker1121 commented Feb 26, 2023

Try the newest build, it should work with a windows PMS
There could be a change that you need to make here:

dest, garbage = str(_).rsplit("/", 1)

to
dest, garbage = str(_).rsplit("\\", 1)

Note:
when providing a direction in the arguments, you cant provide a directory with a space in it
like
%localappdata%\Plex Media Server\Plug-in Support\Databases
wont work, because Plex media server contains spaces.
just copy over the database folder to a directory like C:\Users\USER\PMS_Database
and it should work

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

3 participants