Skip to content

Commit

Permalink
Merge pull request #3434 from pymedusa/feature/tmdb_networks
Browse files Browse the repository at this point in the history
Fix TMDB not returning `networks` in show search
  • Loading branch information
medariox authored Dec 8, 2017
2 parents cb5be6e + 1167845 commit 7813c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medusa/server/web/home/add_shows.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def searchIndexersForShowName(search_term, lang=None, indexer=None):
for i, shows in iteritems(results):
final_results.extend({(indexerApi(i).name, i, indexerApi(i).config['show_url'], int(show['id']),
show['seriesname'].encode('utf-8'), show['firstaired'] or 'N/A',
show['network'].encode('utf-8') or 'N/A') for show in shows})
show.get('network', '').encode('utf-8') or 'N/A') for show in shows})

lang_id = indexerApi().config['langabbv_to_id'][lang]
return json.dumps({'results': final_results, 'langid': lang_id})
Expand Down

0 comments on commit 7813c79

Please sign in to comment.