mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Merge pull request #852 from tactmaster/dev
Changing /calendar to add Season and Episode to the description
This commit is contained in:
commit
fe71731da6
1 changed files with 3 additions and 3 deletions
|
@ -460,7 +460,8 @@ class MainHandler(RequestHandler):
|
||||||
ical = ical + 'DTEND:' + air_date_time_end.strftime(
|
ical = ical + 'DTEND:' + air_date_time_end.strftime(
|
||||||
"%Y%m%d") + 'T' + air_date_time_end.strftime(
|
"%Y%m%d") + 'T' + air_date_time_end.strftime(
|
||||||
"%H%M%S") + 'Z\r\n'
|
"%H%M%S") + 'Z\r\n'
|
||||||
ical = ical + 'SUMMARY:' + show['show_name'] + ': ' + episode['name'] + '\r\n'
|
ical = ical + 'SUMMARY:' + show['show_name'] + ' - ' + str(
|
||||||
|
episode['season']) + "x" + str(episode['episode']) + " - " + episode['name'] + '\r\n'
|
||||||
ical = ical + 'UID:Sick-Beard-' + str(datetime.date.today().isoformat()) + '-' + show[
|
ical = ical + 'UID:Sick-Beard-' + str(datetime.date.today().isoformat()) + '-' + show[
|
||||||
'show_name'].replace(" ", "-") + '-E' + str(episode['episode']) + 'S' + str(
|
'show_name'].replace(" ", "-") + '-E' + str(episode['episode']) + 'S' + str(
|
||||||
episode['season']) + '\r\n'
|
episode['season']) + '\r\n'
|
||||||
|
@ -469,8 +470,7 @@ class MainHandler(RequestHandler):
|
||||||
episode['description'].splitlines()[0] + '\r\n'
|
episode['description'].splitlines()[0] + '\r\n'
|
||||||
else:
|
else:
|
||||||
ical = ical + 'DESCRIPTION:' + (show['airs'] or '(Unknown airs)') + ' on ' + (show['network'] or 'Unknown 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(
|
|
||||||
episode['season']) + '\r\n'
|
|
||||||
ical = ical + 'END:VEVENT\r\n'
|
ical = ical + 'END:VEVENT\r\n'
|
||||||
|
|
||||||
# Ending the iCal
|
# Ending the iCal
|
||||||
|
|
Loading…
Reference in a new issue