mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Fix if network is None
This commit is contained in:
parent
91cb8d885c
commit
cee1566b7b
@ -573,9 +573,11 @@ class WebRoot(WebHandler):
|
||||
ical = ical + 'UID:Sick-Beard-' + str(datetime.date.today().isoformat()) + '-' + show[
|
||||
'show_name'].replace(" ", "-") + '-E' + str(episode['episode']) + 'S' + str(
|
||||
episode['season']) + '\r\n'
|
||||
if (episode['description'] is not None and episode['description'] != ''):
|
||||
ical = ical + 'DESCRIPTION:' + show['airs'] + ' on ' + show['network'] + '\\n\\n' + \
|
||||
episode['description'].splitlines()[0] + '\r\n'
|
||||
if episode['description']:
|
||||
ical = ical + 'DESCRIPTION: {0} on {1} \\n\\n {2}\r\n'.format(
|
||||
(show['airs'] or '(Unknown airs)'),
|
||||
(show['network'] or 'Unknown network'),
|
||||
episode['description'].splitlines()[0])
|
||||
else:
|
||||
ical = ical + 'DESCRIPTION:' + (show['airs'] or '(Unknown airs)') + ' on ' + (
|
||||
show['network'] or 'Unknown network') + '\r\n'
|
||||
|
Loading…
Reference in New Issue
Block a user