]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[tnaflix] Fix extraction (Closes #9074)
authorSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 17:34:59 +0000 (23:34 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 Apr 2016 17:34:59 +0000 (23:34 +0600)
youtube_dl/extractor/tnaflix.py

index 79f036fe4eca77f57ddd9e1fd912317f9af00ba5..bc32c092685011740607d802d1602daa05afee27 100644 (file)
@@ -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',