mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-20 20:32:57 +08:00
[nonktube] Use econfig nuevo URL
This commit is contained in:
parent
b6eb74e340
commit
bf82b87323
@ -25,13 +25,9 @@ class NonkTubeIE(NuevoBaseIE):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
nuevo_url = 'https://www.nonktube.com/media/nuevo/config.php?key=%s' % video_id
|
|
||||||
|
|
||||||
info = self._extract_nuevo(
|
info = self._extract_nuevo(
|
||||||
nuevo_url, video_id, headers={
|
'https://www.nonktube.com/media/nuevo/econfig.php?key=%s'
|
||||||
'Referer': 'https://www.nonktube.com/media/nuevo/player.swf?config=%s' % nuevo_url
|
% video_id, video_id)
|
||||||
})
|
|
||||||
info.update({
|
info['age_limit'] = 18
|
||||||
'age_limit': 18
|
|
||||||
})
|
|
||||||
return info
|
return info
|
||||||
|
Loading…
Reference in New Issue
Block a user