diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-04 20:37:05 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-04 20:37:05 +0600 |
commit | e52c0bd0eb853d4d242872e1d9ff5426a35dd30c (patch) | |
tree | 34452576c17d8689bcd337eccc55a69ab3c800e2 /youtube_dl/extractor/tnaflix.py | |
parent | 56c837ccb75b639d362397095f33300229c4bd1c (diff) |
[tnaflix] Modernize
Diffstat (limited to 'youtube_dl/extractor/tnaflix.py')
-rw-r--r-- | youtube_dl/extractor/tnaflix.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py index bc51bae37..3e335d653 100644 --- a/youtube_dl/extractor/tnaflix.py +++ b/youtube_dl/extractor/tnaflix.py @@ -51,9 +51,8 @@ class TNAFlixIE(InfoExtractor): 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:') |