[nuevo] Pass headers to _extract_nuevo
parent
52294cdda7
commit
3d40084b83
|
@ -10,9 +10,10 @@ from ..utils import (
|
||||||
|
|
||||||
|
|
||||||
class NuevoBaseIE(InfoExtractor):
|
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 = 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()
|
title = xpath_text(config, './title', 'title', fatal=True).strip()
|
||||||
video_id = xpath_text(config, './mediaid', default=video_id)
|
video_id = xpath_text(config, './mediaid', default=video_id)
|
||||||
|
|
Loading…
Reference in New Issue