From: Yen Chi Hsuan Date: Fri, 10 Jun 2016 04:28:09 +0000 (+0800) Subject: [yahoo] Yahoo doesn't like region names in lower cases X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=55290788d352168844c8e64d64428a76baa63eea;p=youtube-dl [yahoo] Yahoo doesn't like region names in lower cases Fix test_Yahoo_7 --- diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index b376f2b93..927a964a4 100644 --- a/youtube_dl/extractor/yahoo.py +++ b/youtube_dl/extractor/yahoo.py @@ -343,7 +343,7 @@ class YahooIE(InfoExtractor): webpage, 'region', fatal=False, default='US') data = compat_urllib_parse_urlencode({ 'protocol': 'http', - 'region': region, + 'region': region.upper(), }) query_url = ( 'https://video.media.yql.yahoo.com/v1/video/sapi/streams/'