mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[nationalgeographic] restore http formats
there was a misunderstanding about the reason of 403 response
the problem happen only when the user use aria2c as a downloader
a1f6f5c768 (commitcomment-18107559)
This commit is contained in:
parent
15e4b6b758
commit
a5f67895d3
1 changed files with 1 additions and 9 deletions
|
@ -79,10 +79,6 @@ class NationalGeographicChannelIE(ThePlatformIE):
|
||||||
'upload_date': '20160322',
|
'upload_date': '20160322',
|
||||||
'uploader': 'NEWA-FNG-NGTV',
|
'uploader': 'NEWA-FNG-NGTV',
|
||||||
},
|
},
|
||||||
'params': {
|
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
'add_ie': ['ThePlatform'],
|
'add_ie': ['ThePlatform'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -97,10 +93,6 @@ class NationalGeographicChannelIE(ThePlatformIE):
|
||||||
'upload_date': '20160330',
|
'upload_date': '20160330',
|
||||||
'uploader': 'NEWA-FNG-NGTV',
|
'uploader': 'NEWA-FNG-NGTV',
|
||||||
},
|
},
|
||||||
'params': {
|
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
'add_ie': ['ThePlatform'],
|
'add_ie': ['ThePlatform'],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -113,7 +105,7 @@ def _real_extract(self, url):
|
||||||
webpage, 'release url')
|
webpage, 'release url')
|
||||||
query = {
|
query = {
|
||||||
'mbr': 'true',
|
'mbr': 'true',
|
||||||
'manifest': 'm3u',
|
'switch': 'http',
|
||||||
}
|
}
|
||||||
is_auth = self._search_regex(r'video_is_auth\s*=\s*"([^"]+)"', webpage, 'is auth', fatal=False)
|
is_auth = self._search_regex(r'video_is_auth\s*=\s*"([^"]+)"', webpage, 'is auth', fatal=False)
|
||||||
if is_auth == 'auth':
|
if is_auth == 'auth':
|
||||||
|
|
Loading…
Reference in a new issue