[lrt] fix duration parsing
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Sat, 28 Nov 2015 21:14:38 +0000 (23:14 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 26 Dec 2015 18:29:54 +0000 (19:29 +0100)
youtube_dl/extractor/lrt.py

index e3236f7b5797ab80431ed11b7027249354015a33..24a9a4c9141c48a283fd7ddd1cae569b005a77f2 100644 (file)
@@ -37,8 +37,7 @@ class LRTIE(InfoExtractor):
         thumbnail = self._og_search_thumbnail(webpage)
         description = self._og_search_description(webpage)
         duration = parse_duration(self._search_regex(
-            r"'duration':\s*'([^']+)',", webpage,
-            'duration', fatal=False, default=None))
+            r"var record_len = '([0-9]+:[0-9]+:[0-9]+)';", webpage, 'record_len', fatal=False, default=None))
 
         formats = []
         for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):