X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=inline;f=youtube_dl%2Fextractor%2Fminhateca.py;h=14934b7ec5579d3b7cfb4b16e5308e81301ace63;hb=15b74b94beb8720a4f6d7ee076c123dd8ae05309;hp=077c9b19dda06327544030b285dbcf05ae4fd023;hpb=4349c07dd7cd07620365b36093f0a148c41ce434;p=youtube-dl.git diff --git a/youtube_dl/extractor/minhateca.py b/youtube_dl/extractor/minhateca.py index 077c9b19d..14934b7ec 100644 --- a/youtube_dl/extractor/minhateca.py +++ b/youtube_dl/extractor/minhateca.py @@ -8,6 +8,7 @@ from ..compat import ( ) from ..utils import ( int_or_none, + parse_duration, parse_filesize, ) @@ -52,8 +53,8 @@ class MinhatecaIE(InfoExtractor): filesize_approx = parse_filesize(self._html_search_regex( r'
(.*?)
', webpage, 'file size approximation', fatal=False)) - duration = int_or_none(self._html_search_regex( - r'(?s).*?([0-9]+)\s*s', + duration = parse_duration(self._html_search_regex( + r'(?s)
.*?class="bold">(.*?)<', webpage, 'duration', fatal=False)) view_count = int_or_none(self._html_search_regex( r'
([0-9]+)
',