From 1bb5c138fd1fe6ff61e64c54742d973c85db3132 Mon Sep 17 00:00:00 2001 From: Ed Watson Date: Tue, 7 Oct 2014 12:55:58 +0100 Subject: [PATCH] changing /calendar.Adding Season and Episode to the description of the event rather than location. (To stop my phone trying to navigate to TV shows) --- sickbeard/webserve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index c0ea3954..62c7ef24 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -460,7 +460,8 @@ class MainHandler(RequestHandler): ical = ical + 'DTEND:' + air_date_time_end.strftime( "%Y%m%d") + 'T' + air_date_time_end.strftime( "%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[ 'show_name'].replace(" ", "-") + '-E' + str(episode['episode']) + 'S' + str( episode['season']) + '\r\n' @@ -469,8 +470,7 @@ class MainHandler(RequestHandler): episode['description'].splitlines()[0] + '\r\n' else: 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' # Ending the iCal