Update valvesounds.py
This commit is contained in:
parent
ae258e6c37
commit
e8947a603b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import urllib2
|
||||||
|
|
||||||
def get_sound_info(game, search):
|
def get_sound_info(game, search):
|
||||||
# Currently, http.get_json doesn't support adding headers.
|
# Currently, http.get_json doesn't support adding headers.
|
||||||
def get_json(url, headers):
|
def get_json(url):
|
||||||
request = urllib2.Request(url)
|
request = urllib2.Request(url)
|
||||||
request.add_header('User-Agent', http.ua_cloudbot)
|
request.add_header('User-Agent', http.ua_cloudbot)
|
||||||
opener = urllib2.build_opener()
|
opener = urllib2.build_opener()
|
||||||
|
|
Reference in a new issue