@Tigrecito,
I had to disable Plex Home to get it working.
Speaking of, are there any plans to support PMS with Home?
Other than that, it's a great addition to the plex-experience :).
Thank you ccjensen!
@Tigrecito,
I had to disable Plex Home to get it working.
Speaking of, are there any plans to support PMS with Home?
Other than that, it's a great addition to the plex-experience :).
Thank you ccjensen!
I don't have plex home myself, but I have started working on adding support. Problem is, I cannot really test it so I need people's help:
https://github.com/ccjensen/PlexMediaTagger/issues/7#issuecomment-68504355
I will do my best to help test. I use Plex Home regularly. Just tried the "Issue 7" branch and ran into this:
COMPUTERNAME:~ USERNAME$ /Users/USERNAME/Downloads/PlexMediaTagger-issue_7/plexmediatagger.py --tag
==== Plex Media Tagger Started ====
Traceback (most recent call last):
File "/Users/USERNAME/Downloads/PlexMediaTagger-issue_7/plexmediatagger.py", line 284, in
sys.exit(main())
File "/Users/USERNAME/Downloads/PlexMediaTagger-issue_7/plexmediatagger.py", line 185, in main
request_handler.setup_opener(opts.username, opts.password)
File "/Users/USERNAME/Downloads/PlexMediaTagger-issue_7/PmsRequestHandler.py", line 41, in setup_opener
self.opener = urllib2.build_opener(auth_handler)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 517, in build_opener
opener.add_handler(h)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 353, in add_handler
type(handler))
TypeError: expected BaseHandler instance, got
thanks for testing! Try passing in a username and password (I will have to fix things so that it will still work for people who aren't using plex home and therefore don't need to authenticate), so something like:
$ /Users/USERNAME/Downloads/PlexMediaTagger-issue_7/plexmediatagger.py --tag --username "foo@mac.com" --password "12345678"
but obviously with your real credentials filled in
I knew I was missing something :P . Been working with plexWatch at the same time and thought it would get the authentication from there :lol: .
Anyway, I tried it and it worked perfectly! I tagged my entire TV Shows library and most of my Movies as well!
Thank you!
ok, the changes to handle plex home authentication has been added to the script + I have updated the script to correctly handle large video files (64 bit) which previously would be tagged every time rather than only when needed
Mr. CC Jensen, much kudos to you!
I've been searching for exactly this kind of tool (why doesn't Plex have their own internal function for it?). I'm sadly struggling to get it to work though. Attached is a screenshot of what happens...
Thanks! Could you try running it again without the dry run but add the flags -vv ? This will print out a bunch of debug information. Ideally also make a new issue on github as it is better at tracking problems, but otherwise report back here with what the output was when run
Thanks for the quick reply, this one step is stopping me from reaching media-organisation perfection! I'm not too familiar with the github site, so hopefully you don't mind my attaching here the new details that you wanted.
After running "python plexmediatagger.py -tfbvv" ...
cool, and now re-run it again and then parse through the output looking for these two sections:
modified path /Volumes/Z-MediaArchive-Video/Movie/<...etc...> saving artwork to /var/folders/<...etc...>
and then run the command (that's lowercase LS -L):
ls -l /Volumes/Z-MediaArchive-Video/Movie/<...etc...>
and then
ls -l /var/folders/<...etc...>
and see if you get any errors
It's amazing what can be fudged through with a little sense and googling! But this is one challenge I'm going to need a little more help with please.
"re-run it again and parse through the output" ...I assume this means to go through the code in chunks, and adjusting what is processed at the two points mentioned, but a literal step by step from running "python plexmediatagger.py -tfbvv" - if that's even the command I now need to open with, would really be appreciated. How to parse through the output to get to those two sections?
Thanks for all your help!
sure :)
so what I meant is run the command again:
python plexmediatagger.py -tfbvv
look at the output (the stuff you took a screenshot and posted above) and find the lines in the text that say:
modified path /Volumes/Z-MediaArchive-Video/Movie/<...etc...>
saving artwork to /var/folders/<...etc...>
ls -l /Volumes/Z-MediaArchive-Video/Movie/<...etc...>
ls -l /var/folders/<...etc...>
Ah, definitely much clearer! But I'm likely doing something wrong... here's what I get when running the first "ls -l" command.
Ah yes, try putting a single quote on each side of the path; so
ls -l ‘/Volumes/etc’
That helped, here's a snapshot of the complete output of all your steps completed.
hmmm... that is odd. Instead of running:
python plexmediatagger.py -tfbvv
could you try running
./plexmediatagger.py -tfbvv
does that make any difference? If that last one throws up some error about not being executable, try running this first and then the plexmediatagger command again:
chmod +x ./plexmediatagger.py
:(
could you attach the output of
ls -l
and
pwd
I think maybe you have a case sensitive filesystem and somehow that is causing problems.
my last question would have given us the missing clue, but I figured it out regardless. If you go to github and get a fresh copy (delete the old one) things should work much better :) Sorry about that!
Nothing to be sorry for, we all owe you much thanks!
The new version is working much better for me now. :)
Question: If I run it with the same command as before "python plexmediatagger.py -tfb", is there a way to force skip a file? It started well enough, but is now stuck on "tagging..." of a file for over 10mins. For these occurrences, can I nudge it somehow on to the next file?