From 0ef68e04d9f612ab354724f18e833201fb8bab2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sat, 8 Mar 2014 22:06:28 +0100 Subject: [mtv] Transform the urls from the mobile version to get the best quality And don't report a warning, just log a message, it allows to pass the test from Europe. --- youtube_dl/extractor/mtv.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'youtube_dl') diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index 652054b63..d75241d3f 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -9,6 +9,7 @@ from ..utils import ( ExtractorError, find_xpath_attr, fix_xml_ampersands, + HEADRequest, unescapeHTML, url_basename, RegexNotFoundError, @@ -49,14 +50,19 @@ class MTVServicesInfoExtractor(InfoExtractor): req.add_header('Youtubedl-user-agent', 'curl/7') webpage = self._download_webpage(req, mtvn_id, 'Downloading mobile page') - url = unescapeHTML(self._search_regex(r'