I’m feeling forensic, and it’s a weekend. If you want, I’ll peruse as a second set of eyes…
Do this if you’d like my help ((Free, unless you come through town some day and want to buy a beer (or soda if you’re underage))
make a copy and remove your passwords and keys from your config.conf (plex, email, cloudinary keys)
send it to me in a PM (rather than post it here in public, just in case it still has some pers. data)
Go to https://plex.tv/pms/friends/all - copy / paste the output into another text file, and attach it to me in a PM too. (Plex may have you log back in before it displays)
I’m getting ready to walk away from my main rig for an hour or three, so wouldn’t be until later this evening or early tomorrow (it’s now ~6pm my time)
@eadwyn said:
I added a fake friend with a single quote in the username and was not able to reproduce this. If you don’t mind sending me the response with your shared usernames and emails in a PM that could help me reproduce the issue and fix it; otherwise I’m shooting in the dark to try to fix it.
If you don’t mind, could you add the following line directly before the line it is breaking on at line 199? Then send me the output in a PM.
print response.text
Not sure what you need here - I can add that text, but to which file?
@eadwyn said:
I added a fake friend with a single quote in the username and was not able to reproduce this. If you don’t mind sending me the response with your shared usernames and emails in a PM that could help me reproduce the issue and fix it; otherwise I’m shooting in the dark to try to fix it.
If you don’t mind, could you add the following line directly before the line it is breaking on at line 199? Then send me the output in a PM.
print response.text
Not sure what you need here - I can add that text, but to which file?
Try using the attached file. It will print out the response from plex for the shared users that the script parses for emails. If I can see the full response, I can reproduce the issue and fix it (it will have emails in it though, so send it in PM). Thanks.
C:\Python27>python scripts\plexEmailResponse.py
Traceback (most recent call last):
File “scripts\plexEmailResponse.py”, line 903, in
if (tvShows[show][‘title’] in config[‘filter_shows_exclude’] or len(set(titl
eFilter).intersection(config[‘filter_shows_exclude’])) > 0 or (config[‘filter_sh
ows_include’] and tvShows[show][‘title’] not in config[‘filter_shows_include’] a
nd len(set(titleFilter).intersection(config[‘filter_shows_include’])) == 0)):
KeyError: ‘filter_shows_exclude’
I don’t see a file created or anything, and this was the output.
@Team503 said:
C:\Python27>python scripts\plexEmailResponse.py
Traceback (most recent call last):
File “scripts\plexEmailResponse.py”, line 903, in
if (tvShows[show][‘title’] in config[‘filter_shows_exclude’] or len(set(titl
eFilter).intersection(config[‘filter_shows_exclude’])) > 0 or (config[‘filter_sh
ows_include’] and tvShows[show][‘title’] not in config[‘filter_shows_include’] a
nd len(set(titleFilter).intersection(config[‘filter_shows_include’])) == 0)):
KeyError: ‘filter_shows_exclude’
I don’t see a file created or anything, and this was the output.
Ok, looks like you are running an older version of the script (it should be backwards compatible, but doesn’t look like this was). Let me try to find the version you are on and get a new file. Although it would be quicker if you could modify your previous plexEmail.py to add the following to line 199:
@Team503 said:
C:\Python27>python scripts\plexEmailResponse.py
Traceback (most recent call last):
File “scripts\plexEmailResponse.py”, line 903, in
if (tvShows[show][‘title’] in config[‘filter_shows_exclude’] or len(set(titl
eFilter).intersection(config[‘filter_shows_exclude’])) > 0 or (config[‘filter_sh
ows_include’] and tvShows[show][‘title’] not in config[‘filter_shows_include’] a
nd len(set(titleFilter).intersection(config[‘filter_shows_include’])) == 0)):
KeyError: ‘filter_shows_exclude’
I don’t see a file created or anything, and this was the output.
Ok, sorry about that (you found a bug with the latest release), but I think I fixed the backwards compatibility issue. Please try this file.
C:\Python27>python scripts\plexEmail.py Web page was not created because the option is disabled in the config file. Traceback (most recent call last): File "scripts\plexEmail.py", line 1110, in <module> sharedEmails = getSharedUserEmails() File "scripts\plexEmail.py", line 227, in getSharedUserEmails print response.text File "C:\Python27\lib\encodings\cp437.py", line 12, in encode return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 3870: character maps to <undefined>
Happy to provide TeamViewer access to you, if that’s easier. I’m going to be away from a computer for most of the rest of the night, though I’ll try back again in about in hour.
@Team503 said: C:\Python27>python scripts\plexEmail.py Web page was not created because the option is disabled in the config file. Traceback (most recent call last): File "scripts\plexEmail.py", line 1110, in <module> sharedEmails = getSharedUserEmails() File "scripts\plexEmail.py", line 227, in getSharedUserEmails print response.text File "C:\Python27\lib\encodings\cp437.py", line 12, in encode return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 3870: character maps to <undefined>
Thanks for trying to troubleshoot with me. This file has a potential solution if you could try it. As for the teamviewer, I’m at work right now so can’t do that, but if this file doesn’t work maybe I could do that this weekend.
Well, I came back and told @team503 that I found the error, and asked he report it to you @eadwyn, then come to this post to find out you’ve already fixed it.
Anyway, team503’s friends list has a server called “Avery`s Movies” that used a left quote instead of a right quote and was throwing the error.
Just download the git files, configure the config.con file, and move the web files to a web server (you can do this easily in OSX too) and run the script.
@adrianwi said:
OSX 10.11 has python2.7 out of the box!
Just download the git files, configure the config.con file, and move the web files to a web server (you can do this easily in OSX too) and run the script.
Bob’s your uncle
Thank your your input @adrianwi, but you lost me at configure the config.con file. how do i do that??? (found it)
Also the web file part i don’t understand. can i put it on a ftp somewhere? (i don’t need a web server, just emails)
To those interested in music support: The dev branch currently has my initial additions to the script to support music. I would appreciate any feedback/bug reports on the new changes while I polish it and make some final changes before pushing to the master branch.