1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[yahoo] Yahoo doesn't like region names in lower cases

Fix test_Yahoo_7
This commit is contained in:
Yen Chi Hsuan 2016-06-10 12:28:09 +08:00
parent bc7e7adf51
commit 55290788d3

View file

@ -343,7 +343,7 @@ class YahooIE(InfoExtractor):
webpage, 'region', fatal=False, default='US') webpage, 'region', fatal=False, default='US')
data = compat_urllib_parse_urlencode({ data = compat_urllib_parse_urlencode({
'protocol': 'http', 'protocol': 'http',
'region': region, 'region': region.upper(),
}) })
query_url = ( query_url = (
'https://video.media.yql.yahoo.com/v1/video/sapi/streams/' 'https://video.media.yql.yahoo.com/v1/video/sapi/streams/'