Browse Source

[nuevo] Pass headers to _extract_nuevo

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
3d40084b83
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/nuevo.py

+ 3
- 2
youtube_dl/extractor/nuevo.py View File

@ -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)


Loading…
Cancel
Save