diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-08 23:34:59 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-08 23:34:59 +0600 |
commit | 2f2fcf1a3304a7134d280726ae1a3d7010adbd59 (patch) | |
tree | 084cfc7b6574a55adb10cba49fb1f0c9af6db61e /youtube_dl | |
parent | bacec0397ff2abddac460148e8ceb49989fce6a2 (diff) |
[tnaflix] Fix extraction (Closes #9074)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/tnaflix.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py index 79f036fe4..bc32c0926 100644 --- a/youtube_dl/extractor/tnaflix.py +++ b/youtube_dl/extractor/tnaflix.py @@ -76,7 +76,11 @@ class TNAFlixNetworkBaseIE(InfoExtractor): webpage = self._download_webpage(url, display_id) cfg_url = self._proto_relative_url(self._html_search_regex( - self._CONFIG_REGEX, webpage, 'flashvars.config'), 'http:') + self._CONFIG_REGEX, webpage, 'flashvars.config', default=None), 'http:') + + if not cfg_url: + inputs = self._hidden_inputs(webpage) + cfg_url = 'https://cdn-fck.tnaflix.com/tnaflix/%s.fid?key=%s' % (inputs['vkey'], inputs['nkey']) cfg_xml = self._download_xml( cfg_url, display_id, 'Downloading metadata', |