Browse Source

[lrt] fix duration parsing

master
Giedrius Statkevičius 9 years ago
committed by Jaime Marquínez Ferrándiz
parent
commit
85367c3a47
1 changed files with 1 additions and 2 deletions
  1. 3
      youtube_dl/extractor/lrt.py

3
youtube_dl/extractor/lrt.py

@ -37,8 +37,7 @@ class LRTIE(InfoExtractor):
thumbnail = self._og_search_thumbnail(webpage) thumbnail = self._og_search_thumbnail(webpage)
description = self._og_search_description(webpage) description = self._og_search_description(webpage)
duration = parse_duration(self._search_regex( 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 = [] formats = []
for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage): for js in re.findall(r'(?s)config:\s*(\{.*?\})', webpage):

Loading…
Cancel
Save