projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c837c
)
[tnaflix] Modernize
author
Sergey M․
<dstftw@gmail.com>
Thu, 4 Jun 2015 14:37:05 +0000
(20:37 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 4 Jun 2015 14:37:05 +0000
(20:37 +0600)
youtube_dl/extractor/tnaflix.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tnaflix.py
b/youtube_dl/extractor/tnaflix.py
index bc51bae37f07e3d38e93f37a2f21800493264770..3e335d653691fa6c5af61cc601f9e795bb69d7c6 100644
(file)
--- 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:')