Skip to content

Commit

Permalink
Fixed #3 - issue with --detail and web shows (netflix, prime etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
Znuff committed Mar 17, 2017
1 parent aaf7587 commit 0221a69
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 0221a69

Please sign in to comment.