aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nuevo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-05-08 20:03:38 +0700
committerSergey M․ <dstftw@gmail.com>2017-05-08 20:03:38 +0700
commit3d40084b835afe49adff7eca67dec26bc9b95c0a (patch)
tree5a639240f1ed2702b0216a8c1389ac9c7381bb61 /youtube_dl/extractor/nuevo.py
parent52294cdda761ad08785e7118ae8e121ceef257ec (diff)
[nuevo] Pass headers to _extract_nuevo
Diffstat (limited to 'youtube_dl/extractor/nuevo.py')
-rw-r--r--youtube_dl/extractor/nuevo.py5
1 files changed, 3 insertions, 2 deletions
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)