From 0221a6970430bcd1b2cbc9d72bf8ffa3f4091b8a Mon Sep 17 00:00:00 2001 From: Znuff Date: Fri, 17 Mar 2017 15:41:57 +0200 Subject: [PATCH] Fixed #3 - issue with --detail and web shows (netflix, prime etc.) --- plugin.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 021d44d..89a84e5 100644 --- a/plugin.py +++ b/plugin.py @@ -99,13 +99,21 @@ def tv(self, irc, msg, args, opts, tvshow): irc.reply(format('No show found named "%s"', ircutils.bold(tvshow))) if details: - show_network = format('%s', + if show['network']: + show_network = format('%s', ircutils.bold(show['network']['name'])) - show_schedule = format('%s: %s @ %s', + show_schedule = format('%s: %s @ %s', ircutils.underline('Schedule'), ircutils.bold(', '.join(show['schedule']['days'])), ircutils.bold(show['schedule']['time'])) + else: + show_network = format('%s', + ircutils.bold(show['webChannel']['name'])) + + show_schedule = format('%s: %s', + ircutils.underline('Premiered'), + ircutils.bold(show['premiered'])) show_genre = format('%s: %s/%s', ircutils.underline('Genre'),