0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-01 23:12:40 +00:00

[tnaflix] Modernize

This commit is contained in:
Sergey M․ 2015-06-04 20:37:05 +06:00
parent 56c837ccb7
commit e52c0bd0eb

View file

@ -51,9 +51,8 @@ def _real_extract(self, url):
age_limit = self._rta_search(webpage)
duration = self._html_search_meta('duration', webpage, 'duration', default=None)
if duration:
duration = parse_duration(duration[1:])
duration = parse_duration(self._html_search_meta(
'duration', webpage, 'duration', default=None))
cfg_url = self._proto_relative_url(self._html_search_regex(
self._CONFIG_REGEX, webpage, 'flashvars.config'), 'http:')