[dumpert] Add cpc cookie (Closes #5672)
authorSergey M․ <dstftw@gmail.com>
Mon, 11 May 2015 15:05:39 +0000 (21:05 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 11 May 2015 15:05:39 +0000 (21:05 +0600)
youtube_dl/extractor/dumpert.py

index 9c594b757e4bbe41371cc603441c4dd5230e7b74..999fb5620df2976073122fb95fbad1bb133f357a 100644 (file)
@@ -26,7 +26,7 @@ class DumpertIE(InfoExtractor):
         video_id = self._match_id(url)
 
         req = compat_urllib_request.Request(url)
-        req.add_header('Cookie', 'nsfw=1')
+        req.add_header('Cookie', 'nsfw=1; cpc=10')
         webpage = self._download_webpage(req, video_id)
 
         files_base64 = self._search_regex(