浏览代码

[lrt] fix duration parsing

Giedrius Statkevičius 9 年之前
父节点
当前提交
85367c3a47
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      youtube_dl/extractor/lrt.py

+ 1 - 2
youtube_dl/extractor/lrt.py

@@ -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):