Browse Source

Change add language field to TVMaze search results.

Change set TVMaze network to webchannel if no network is found.
Change add TVMaze runtime, type, schedule, status, official site.
tags/release_0.25.1
Prinz23 4 years ago
committed by JackDandy
parent
commit
593635f7e6
  1. 3
      CHANGES.md
  2. 5
      lib/api_tvmaze/tvmaze_api.py

3
CHANGES.md

@ -104,6 +104,9 @@
* Change check if average mini-series runtime is reasonable before displaying it
* Fix use meta lang to filter TMDB images
* Fix glide cursor left and right key collisions with ctrl + alt/meta with left and right
* Change add language field to TVMaze search results
* Change set TVMaze network to webchannel if no network is found
* Change add TVMaze runtime, type, schedule, status, official site
### 0.24.16 (2021-08-28 16:05:00 UTC)

5
lib/api_tvmaze/tvmaze_api.py

@ -143,9 +143,10 @@ class TvMaze(TVInfoBase):
def _search_show(self, name=None, ids=None, **kwargs):
def _make_result_dict(s):
return {'seriesname': s.name, 'id': s.id, 'firstaired': s.premiered,
'network': s.network and s.network.name,
'network': (s.network and s.network.name) or (s.web_channel and s.web_channel.name),
'genres': isinstance(s.genres, list) and ', '.join(g.lower() for g in s.genres) or s.genres,
'overview': s.summary,
'overview': s.summary, 'language': s.language, 'runtime': s.average_runtime or s.runtime,
'type': s.type, 'schedule': s.schedule, 'status': s.status, 'official_site': s.official_site,
'aliases': [a.name for a in s.akas], 'image': s.image and s.image.get('original'),
'ids': TVInfoIDs(
tvdb=s.externals.get('thetvdb'), rage=s.externals.get('tvrage'), tvmaze=s.id,

Loading…
Cancel
Save