mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-11 03:45:01 -05:00
Merge pull request #840 from bobobo1618/patch-1
Catch airs/network set to None
This commit is contained in:
commit
f2f7243e97
@ -468,7 +468,7 @@ class MainHandler(RequestHandler):
|
|||||||
ical = ical + 'DESCRIPTION:' + show['airs'] + ' on ' + show['network'] + '\\n\\n' + \
|
ical = ical + 'DESCRIPTION:' + show['airs'] + ' on ' + show['network'] + '\\n\\n' + \
|
||||||
episode['description'].splitlines()[0] + '\r\n'
|
episode['description'].splitlines()[0] + '\r\n'
|
||||||
else:
|
else:
|
||||||
ical = ical + 'DESCRIPTION:' + show['airs'] + ' on ' + show['network'] + '\r\n'
|
ical = ical + 'DESCRIPTION:' + (show['airs'] or '(Unknown airs)') + ' on ' + (show['network'] or 'Unknown network') + '\r\n'
|
||||||
ical = ical + 'LOCATION:' + 'Episode ' + str(episode['episode']) + ' - Season ' + str(
|
ical = ical + 'LOCATION:' + 'Episode ' + str(episode['episode']) + ' - Season ' + str(
|
||||||
episode['season']) + '\r\n'
|
episode['season']) + '\r\n'
|
||||||
ical = ical + 'END:VEVENT\r\n'
|
ical = ical + 'END:VEVENT\r\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user