]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[yahoo] Yahoo doesn't like region names in lower cases
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 10 Jun 2016 04:28:09 +0000 (12:28 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 10 Jun 2016 04:28:56 +0000 (12:28 +0800)
Fix test_Yahoo_7

youtube_dl/extractor/yahoo.py

index b376f2b935da82d5b031bdf5b6910593f51add65..927a964a4c5036094d657a634c6df8f8874e00af 100644 (file)
@@ -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/'