mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 22:51:45 +00:00
[extractor/tnaflix] Fix extractor (#6086)
Closes #6085 Authored by: oxamun, bashonly
This commit is contained in:
parent
7d5f919bad
commit
989f47b631
@ -81,26 +81,27 @@ class TNAFlixNetworkBaseIE(InfoExtractor):
|
|||||||
display_id = video_id
|
display_id = video_id
|
||||||
|
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
inputs = self._hidden_inputs(webpage)
|
||||||
|
query = {}
|
||||||
|
|
||||||
# check for MovieFap-style config
|
# check for MovieFap-style config
|
||||||
cfg_url = self._proto_relative_url(self._html_search_regex(
|
cfg_url = self._proto_relative_url(self._html_search_regex(
|
||||||
self._CONFIG_REGEX, webpage, 'flashvars.config', default=None,
|
self._CONFIG_REGEX, webpage, 'flashvars.config', default=None,
|
||||||
group='url'), 'http:')
|
group='url'), 'http:')
|
||||||
query = {}
|
|
||||||
|
if not cfg_url:
|
||||||
|
cfg_url = inputs.get('config')
|
||||||
|
|
||||||
# check for TNAFlix-style config
|
# check for TNAFlix-style config
|
||||||
if not cfg_url:
|
if not cfg_url and inputs.get('vkey') and inputs.get('nkey'):
|
||||||
inputs = self._hidden_inputs(webpage)
|
cfg_url = f'http://cdn-fck.{host}.com/{host}/{inputs["vkey"]}.fid'
|
||||||
if inputs.get('vkey') and inputs.get('nkey'):
|
query.update({
|
||||||
cfg_url = f'https://www.{host}.com/cdn/cdn.php'
|
'key': inputs['nkey'],
|
||||||
query.update({
|
'VID': video_id,
|
||||||
'file': inputs['vkey'],
|
'premium': '1',
|
||||||
'key': inputs['nkey'],
|
'vip': '1',
|
||||||
'VID': video_id,
|
'alpha': '',
|
||||||
'premium': '1',
|
})
|
||||||
'vip': '1',
|
|
||||||
'alpha': '',
|
|
||||||
})
|
|
||||||
|
|
||||||
formats, json_ld = [], {}
|
formats, json_ld = [], {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user