forked from platypush/platypush
[torrent
] Fixed duration and image for TV series results.
This commit is contained in:
parent
e66ca105d7
commit
cd635ea69e
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ class TorrentPlugin(Plugin):
|
||||||
+ f'[S{episode.get("season", 0):02d}E{episode.get("episode", 0):02d}] '
|
+ f'[S{episode.get("season", 0):02d}E{episode.get("episode", 0):02d}] '
|
||||||
+ f'{episode.get("title", "[No Title]")} [tv][{quality}]'
|
+ f'{episode.get("title", "[No Title]")} [tv][{quality}]'
|
||||||
),
|
),
|
||||||
'duration': int(result.get('runtime') or 0),
|
'duration': int(result.get('runtime') or 0) * 60,
|
||||||
'year': int(result.get('year') or 0),
|
'year': int(result.get('year') or 0),
|
||||||
'synopsis': result.get('synopsis'),
|
'synopsis': result.get('synopsis'),
|
||||||
'overview': episode.get('overview'),
|
'overview': episode.get('overview'),
|
||||||
|
@ -246,7 +246,7 @@ class TorrentPlugin(Plugin):
|
||||||
'network': result.get('network'),
|
'network': result.get('network'),
|
||||||
'status': result.get('status'),
|
'status': result.get('status'),
|
||||||
'genres': result.get('genres', []),
|
'genres': result.get('genres', []),
|
||||||
'images': result.get('images', []),
|
'image': result.get('images', {}).get('fanart'),
|
||||||
'rating': result.get('rating', {}),
|
'rating': result.get('rating', {}),
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
'provider': item.get('provider'),
|
'provider': item.get('provider'),
|
||||||
|
|
Loading…
Reference in a new issue