aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-05-08 20:13:22 +0700
committerSergey M․ <dstftw@gmail.com>2017-05-08 20:13:22 +0700
commitbf82b8732353f45582cfefc6cced01721fbf4154 (patch)
treebc93a5842132854b02d72f8c7e87f3794c57c010 /youtube_dl/extractor
parentb6eb74e340fd523fb0c710b3141d6f9c696069f2 (diff)
[nonktube] Use econfig nuevo URL
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/nonktube.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/youtube_dl/extractor/nonktube.py b/youtube_dl/extractor/nonktube.py
index ba6007cd1..63e58aae2 100644
--- a/youtube_dl/extractor/nonktube.py
+++ b/youtube_dl/extractor/nonktube.py
@@ -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