diff --git a/CHANGES.md b/CHANGES.md index 877076a..6353c36 100644 --- a/CHANGES.md +++ b/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) diff --git a/lib/api_tvmaze/tvmaze_api.py b/lib/api_tvmaze/tvmaze_api.py index 31d0605..121a3f3 100644 --- a/lib/api_tvmaze/tvmaze_api.py +++ b/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,