Skip to content

Commit

Permalink
default tmdb data (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich authored Jan 30, 2019
1 parent cef175e commit 9265424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sensor/trakt.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def update(self):
'rating': tmdb_json.get('vote_average', ''),
'poster': image_url % ('500', tmdb_json.get('poster_path', '')),
'fanart': image_url % ('780', tmdb_json.get('backdrop_path', '')),
'runtime': tmdb_json.get('episode_run_time')[0] if len(tmdb_json.get('episode_run_time')) > 0 else '',
'studio': tmdb_json.get('networks')[0].get('name', '') if len(tmdb_json.get('networks')) > 0 else ''
'runtime': tmdb_json.get('episode_run_time')[0] if len(tmdb_json.get('episode_run_time', [])) > 0 else '',
'studio': tmdb_json.get('networks')[0].get('name', '') if len(tmdb_json.get('networks', [])) > 0 else ''
}
card_json.append(card_item)

Expand Down

0 comments on commit 9265424

Please sign in to comment.