From: Jaime Marquínez Ferrándiz Date: Sat, 8 Mar 2014 21:06:28 +0000 (+0100) Subject: [mtv] Transform the urls from the mobile version to get the best quality X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0ef68e04d9f612ab354724f18e833201fb8bab2f;p=youtube-dl [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. --- 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'