1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[lrt] fix duration parsing

This commit is contained in:
Giedrius Statkevičius 2015-11-28 23:14:38 +02:00 committed by Jaime Marquínez Ferrándiz
parent 607d65fbce
commit 85367c3a47

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