From: Sergey M․ Date: Mon, 8 May 2017 13:03:38 +0000 (+0700) Subject: [nuevo] Pass headers to _extract_nuevo X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=3d40084b835afe49adff7eca67dec26bc9b95c0a;p=youtube-dl.git [nuevo] Pass headers to _extract_nuevo --- diff --git a/youtube_dl/extractor/nuevo.py b/youtube_dl/extractor/nuevo.py index 87fb94d1f..be1e09d37 100644 --- a/youtube_dl/extractor/nuevo.py +++ b/youtube_dl/extractor/nuevo.py @@ -10,9 +10,10 @@ from ..utils import ( class NuevoBaseIE(InfoExtractor): - def _extract_nuevo(self, config_url, video_id): + def _extract_nuevo(self, config_url, video_id, headers={}): config = self._download_xml( - config_url, video_id, transform_source=lambda s: s.strip()) + config_url, video_id, transform_source=lambda s: s.strip(), + headers=headers) title = xpath_text(config, './title', 'title', fatal=True).strip() video_id = xpath_text(config, './mediaid', default=video_id)