From bc4206524f76a116db49aaf3339a92e8449923a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Thu, 22 Jul 2021 17:46:46 +0200 Subject: [PATCH] [vivo] fix filesize --- youtube_dl/extractor/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/shared.py b/youtube_dl/extractor/shared.py index 93ab2a167..e18b5e3db 100644 --- a/youtube_dl/extractor/shared.py +++ b/youtube_dl/extractor/shared.py @@ -116,7 +116,7 @@ class VivoIE(SharedBaseIE): def _extract_filesize(self, webpage): return parse_filesize(self._search_regex( - r'data-type=["\']video["\'][^>]*>Watch.*?\s*\((.+?)\)', + r'\((\d+\.\d+ [KGM]B)\)', webpage, 'filesize', fatal=False)) def _extract_video_url(self, webpage, video_id, url):