logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 85367c3a478241a9d47be76ff5418b512cd40eed
parent 607d65fbceebe7df6d45bb02d6eab378896f099b
Author: Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
Date:   Sat, 28 Nov 2015 23:14:38 +0200

[lrt] fix duration parsing

Diffstat:

Myoutube_dl/extractor/lrt.py3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/youtube_dl/extractor/lrt.py b/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):