summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/tvrage.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/tvrage.py b/modules/tvrage.py
index 51263dd..cb31700 100644
--- a/modules/tvrage.py
+++ b/modules/tvrage.py
@@ -37,6 +37,15 @@ class Module:
if 'Ended' in status or 'Canceled' in status:
return '\002%s\002 does not currently air.' % data['Show Name'][0]
+ if not 'RFC3339' in data:
+ if 'Next Episode' in data:
+ return '\002%s\002 %s airs in %s, on %s' % (data['Show Name'][0],
+ data['Next Episode'][1],
+ data['Next Episode'][2],
+ data['Airtime'][0])
+ else:
+ return 'Can''t find airing date for \002%s\002.'
+
# TODO: Fetch this from somewhere user-configurable
local_tz = pytz.timezone('Europe/Oslo')