[torrent] Fixed duration and image for TV series results.

This commit is contained in:
Fabio Manganiello 2023-11-08 22:53:40 +01:00
parent e66ca105d7
commit cd635ea69e
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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'),