aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-04 17:35:40 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-04 17:35:40 +0100
commite8df5cee12378acd708b6686130a73c5edc06f0e (patch)
tree8d58243d31366dd03ae335426c188bab4db6b99e /youtube_dl/extractor
parentab07963b5cc79812c6fb7e4f9e363533d8123830 (diff)
[minhateca] Fix duration parsing
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/minhateca.py5
1 files changed, 3 insertions, 2 deletions
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'<p class="fileSize">(.*?)</p>',
webpage, 'file size approximation', fatal=False))
- duration = int_or_none(self._html_search_regex(
- r'(?s)<p class="fileLeng[ht][th]">.*?([0-9]+)\s*s',
+ duration = parse_duration(self._html_search_regex(
+ r'(?s)<p class="fileLeng[ht][th]">.*?class="bold">(.*?)<',
webpage, 'duration', fatal=False))
view_count = int_or_none(self._html_search_regex(
r'<p class="downloadsCounter">([0-9]+)</p>',