Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
* Fixes an issue around backwards compatibility
* Fixes an issue with handling of the shared users response
  • Loading branch information
jakewaldron committed Feb 20, 2016
1 parent 40b8a57 commit 284c3ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/plexEmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ def replaceConfigTokens():
config['filter_movies_exclude'] = []

if ('filter_shows_include' not in config):
config['filter_movies_include'] = []
config['filter_shows_include'] = []

if ('filter_shows_exclude' not in config):
config['filter_movies_exclude'] = []
config['filter_shows_exclude'] = []

if ('filter_seasons_include' not in config):
config['filter_movies_include'] = []
config['filter_seasons_include'] = []

if ('filter_seasons_exclude' not in config):
config['filter_movies_exclude'] = []
config['filter_seasons_exclude'] = []

if ('filter_episodes_include' not in config):
config['filter_movies_include'] = []
config['filter_episodes_include'] = []

if ('filter_episodes_exclude' not in config):
config['filter_movies_exclude'] = []
config['filter_episodes_exclude'] = []

if ('filter_episode_thumbnail_type' not in config):
config['filter_episode_thumbnail_type'] = 'episode'
Expand Down Expand Up @@ -224,7 +224,7 @@ def getSharedUserEmails():
headers = {'Accept': 'application/json', 'X-Plex-Token': token}
response = requests.get(url, headers=headers)

parsed = XML(response.text)
parsed = XML(response.text.encode('ascii', 'ignore'))
for elem in parsed:
for name, value in sorted(elem.attrib.items()):
if (name == 'email'):
Expand Down

0 comments on commit 284c3ab

Please sign in to comment.