diff options
author | Giedrius Statkevičius <giedrius.statkevicius@gmail.com> | 2015-11-28 23:14:38 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-12-26 19:29:54 +0100 |
commit | 85367c3a478241a9d47be76ff5418b512cd40eed (patch) | |
tree | cd27ca241440d971acce2352292abff11ec1fa0a /youtube_dl/extractor/lrt.py | |
parent | 607d65fbceebe7df6d45bb02d6eab378896f099b (diff) |
[lrt] fix duration parsing
Diffstat (limited to 'youtube_dl/extractor/lrt.py')
-rw-r--r-- | youtube_dl/extractor/lrt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/lrt.py b/youtube_dl/extractor/lrt.py index e3236f7b5..24a9a4c91 100644 --- 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): |