]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[nonktube] Use econfig nuevo URL
authorSergey M․ <dstftw@gmail.com>
Mon, 8 May 2017 13:13:22 +0000 (20:13 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 8 May 2017 13:13:22 +0000 (20:13 +0700)
youtube_dl/extractor/nonktube.py

index ba6007cd1d4217b6cf3861eedc7efabd67eeeab7..63e58aae2666f4f228a5a73ee4f4fc12add6dd37 100644 (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