From a94ddd3f05abfb23d86839acf62be4d3dc73f08e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 7 Nov 2023 00:11:38 +0100 Subject: [PATCH] [`torrent`] duration * 60 for results returned by PopcornTime API. --- platypush/plugins/torrent/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/torrent/__init__.py b/platypush/plugins/torrent/__init__.py index 58ce31a9c..0fb1c7d01 100644 --- a/platypush/plugins/torrent/__init__.py +++ b/platypush/plugins/torrent/__init__.py @@ -195,7 +195,7 @@ class TorrentPlugin(Plugin): result.get('title', '[No Title]') + f' [movies][{lang}][{quality}]' ), - 'duration': int(result.get('runtime') or 0), + 'duration': int(result.get('runtime') or 0) * 60, 'year': int(result.get('year') or 0), 'synopsis': result.get('synopsis'), 'trailer': result.get('trailer'),