1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 14:35:46 +00:00

[vivo] fix filesize

This commit is contained in:
Maciej Krüger 2021-07-22 17:46:46 +02:00
parent a803582717
commit bc4206524f
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -116,7 +116,7 @@ class VivoIE(SharedBaseIE):
def _extract_filesize(self, webpage):
return parse_filesize(self._search_regex(
r'data-type=["\']video["\'][^>]*>Watch.*?<strong>\s*\((.+?)\)',
r'<strong>\((\d+\.\d+ [KGM]B)\)</strong>',
webpage, 'filesize', fatal=False))
def _extract_video_url(self, webpage, video_id, url):