[sunporno] fix duration
authorpeugeot <peugeot.com>
Fri, 26 Dec 2014 11:49:13 +0000 (12:49 +0100)
committerpeugeot <peugeot.com>
Fri, 26 Dec 2014 11:49:13 +0000 (12:49 +0100)
youtube_dl/extractor/sunporno.py

index 263f09b4645fa8b6255f1216e99cab27afce2bee..6cfbc016034f8ba55c5a033c4cbff92ad12a9d8a 100644 (file)
@@ -39,7 +39,7 @@ class SunPornoIE(InfoExtractor):
             r'poster="([^"]+)"', webpage, 'thumbnail', fatal=False)
 
         duration = parse_duration(self._search_regex(
-            r'Duration:\s*(\d+:\d+)\s*<', webpage, 'duration', fatal=False))
+            r'Duration:[^\d]+(\d+:\d+)\s*<', webpage, 'duration', fatal=False))
 
         view_count = int_or_none(self._html_search_regex(
             r'class="views">\s*(\d+)\s*<', webpage, 'view count', fatal=False))