From e571f7de6efa78943fe9d1c8d717169a2ac534e3 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 29 Aug 2020 18:22:23 +0200 Subject: [PATCH] I AM SO SMART -- S-M-R-T! --- app/common/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/common.py b/app/common/common.py index 3b86e7a..371ef66 100644 --- a/app/common/common.py +++ b/app/common/common.py @@ -293,8 +293,8 @@ def video_metadata(metadata): 'author': meta1['author'], 'channel_id': meta1['channelId'], 'published': published_at, - 'views': int(meta1['viewCount']) or int(meta2['lengthSeconds']), - 'length': int(meta1['lengthSeconds']), + 'views': int(meta1['viewCount']), + 'length': int(meta2['lengthSeconds']) or int(meta1['lengthSeconds']), 'livestream': meta1['isLiveContent'], } -- 2.39.3