mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Catch error when speical charactor crashes email send
This commit is contained in:
parent
27daf8b46c
commit
0030c87d04
@ -29,7 +29,7 @@ import sickbeard
|
|||||||
|
|
||||||
from sickbeard import logger, common
|
from sickbeard import logger, common
|
||||||
from sickbeard import db
|
from sickbeard import db
|
||||||
from sickbeard.encodingKludge import toUnicode
|
from sickbeard import encodingKludge as ek
|
||||||
from sickbeard.exceptions import ex
|
from sickbeard.exceptions import ex
|
||||||
|
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ class EmailNotifier:
|
|||||||
ep_name: The name of the episode that was snatched
|
ep_name: The name of the episode that was snatched
|
||||||
title: The title of the notification (optional)
|
title: The title of the notification (optional)
|
||||||
"""
|
"""
|
||||||
ep_name = toUnicode(ep_name)
|
ep_name = ek.ss(ep_name)
|
||||||
|
|
||||||
if sickbeard.EMAIL_NOTIFY_ONSNATCH:
|
if sickbeard.EMAIL_NOTIFY_ONSNATCH:
|
||||||
show = self._parseEp(ep_name)
|
show = self._parseEp(ep_name)
|
||||||
@ -89,7 +89,7 @@ class EmailNotifier:
|
|||||||
ep_name: The name of the episode that was downloaded
|
ep_name: The name of the episode that was downloaded
|
||||||
title: The title of the notification (optional)
|
title: The title of the notification (optional)
|
||||||
"""
|
"""
|
||||||
ep_name = toUnicode(ep_name)
|
ep_name = ek.ss(ep_name)
|
||||||
|
|
||||||
if sickbeard.EMAIL_NOTIFY_ONDOWNLOAD:
|
if sickbeard.EMAIL_NOTIFY_ONDOWNLOAD:
|
||||||
show = self._parseEp(ep_name)
|
show = self._parseEp(ep_name)
|
||||||
@ -127,7 +127,7 @@ class EmailNotifier:
|
|||||||
ep_name: The name of the episode that was downloaded
|
ep_name: The name of the episode that was downloaded
|
||||||
lang: Subtitle language wanted
|
lang: Subtitle language wanted
|
||||||
"""
|
"""
|
||||||
ep_name = toUnicode(ep_name)
|
ep_name = ek.ss(ep_name)
|
||||||
|
|
||||||
if sickbeard.EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD:
|
if sickbeard.EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD:
|
||||||
show = self._parseEp(ep_name)
|
show = self._parseEp(ep_name)
|
||||||
@ -207,7 +207,7 @@ class EmailNotifier:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def _parseEp(self, ep_name):
|
def _parseEp(self, ep_name):
|
||||||
ep_name = toUnicode(ep_name)
|
ep_name = ek.ss(ep_name)
|
||||||
|
|
||||||
sep = " - "
|
sep = " - "
|
||||||
titles = ep_name.split(sep)
|
titles = ep_name.split(sep)
|
||||||
|
Loading…
Reference in New Issue
Block a user