Browse Source

[nonktube] Use econfig nuevo URL

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
bf82b87323
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      youtube_dl/extractor/nonktube.py

+ 4
- 8
youtube_dl/extractor/nonktube.py View File

@ -25,13 +25,9 @@ class NonkTubeIE(NuevoBaseIE):
def _real_extract(self, 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(
nuevo_url, video_id, headers={
'Referer': 'https://www.nonktube.com/media/nuevo/player.swf?config=%s' % nuevo_url
})
info.update({
'age_limit': 18
})
'https://www.nonktube.com/media/nuevo/econfig.php?key=%s'
% video_id, video_id)
info['age_limit'] = 18
return info

Loading…
Cancel
Save