mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Merge pull request #321 from JonnyWong16/miscellaneous-fixes
Miscellaneous fixes
This commit is contained in:
commit
6081fa329b
2 changed files with 4 additions and 4 deletions
|
@ -315,13 +315,13 @@ def build_notify_text(session=None, timeline=None, state=None):
|
||||||
# Check for exclusion tags
|
# Check for exclusion tags
|
||||||
if metadata['media_type'] == 'movie':
|
if metadata['media_type'] == 'movie':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<tv>[^>]+.</tv>|<music>[^>]+.</music>', re.IGNORECASE)
|
pattern = re.compile('<tv>[^>]+.</tv>|<music>[^>]+.</music>', re.IGNORECASE|re.DOTALL)
|
||||||
elif metadata['media_type'] == 'show' or metadata['media_type'] == 'episode':
|
elif metadata['media_type'] == 'show' or metadata['media_type'] == 'episode':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<movie>[^>]+.</movie>|<music>[^>]+.</music>', re.IGNORECASE)
|
pattern = re.compile('<movie>[^>]+.</movie>|<music>[^>]+.</music>', re.IGNORECASE|re.DOTALL)
|
||||||
elif metadata['media_type'] == 'artist' or metadata['media_type'] == 'track':
|
elif metadata['media_type'] == 'artist' or metadata['media_type'] == 'track':
|
||||||
# Regex pattern to remove the text in the tags we don't want
|
# Regex pattern to remove the text in the tags we don't want
|
||||||
pattern = re.compile('<tv>[^>]+.</tv>|<movie>[^>]+.</movie>', re.IGNORECASE)
|
pattern = re.compile('<tv>[^>]+.</tv>|<movie>[^>]+.</movie>', re.IGNORECASE|re.DOTALL)
|
||||||
else:
|
else:
|
||||||
pattern = None
|
pattern = None
|
||||||
|
|
||||||
|
|
|
@ -505,7 +505,7 @@ class PROWL(object):
|
||||||
|
|
||||||
data = {'apikey': plexpy.CONFIG.PROWL_KEYS,
|
data = {'apikey': plexpy.CONFIG.PROWL_KEYS,
|
||||||
'application': 'PlexPy',
|
'application': 'PlexPy',
|
||||||
'event': event,
|
'event': event.encode("utf-8"),
|
||||||
'description': message.encode("utf-8"),
|
'description': message.encode("utf-8"),
|
||||||
'priority': plexpy.CONFIG.PROWL_PRIORITY}
|
'priority': plexpy.CONFIG.PROWL_PRIORITY}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue