nomego / Lazyman.bundle

Lazyman Plex Channel
105 stars 24 forks source link

Fix issue when games have no broadcast #61

Closed csmith1210 closed 5 years ago

csmith1210 commented 5 years ago

Fixes #60. Just a simple change to catch the KeyError and still display the game in the LazyMan list.

try:
    game.feeds = Feed.fromContent(g["content"], game.home_abbr, game.away_abbr)
except KeyError:
    game.title = "%s @ %s" % (away["teamName"], home["teamName"])
    game.summary = "Game has no broadcast."
return game
image