aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-06-10 12:28:09 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-06-10 12:28:56 +0800
commit55290788d352168844c8e64d64428a76baa63eea (patch)
treeb2673a866b83e2c471f6eaf2502428caa0a4e71e
parentbc7e7adf5154f15b74b2df3e2989f630667778ce (diff)
[yahoo] Yahoo doesn't like region names in lower cases
Fix test_Yahoo_7
-rw-r--r--youtube_dl/extractor/yahoo.py2
1 files changed, 1 insertions, 1 deletions
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/'