increase timeout (it's asynchronous, so we can wait)
This commit is contained in:
parent
546249e950
commit
4934e91e74
@ -38,7 +38,7 @@ class DmrMetaEnricher(object):
|
|||||||
cache = DmrCache.getSharedInstance()
|
cache = DmrCache.getSharedInstance()
|
||||||
try:
|
try:
|
||||||
logger.debug("requesting DMR metadata for id=%s", id)
|
logger.debug("requesting DMR metadata for id=%s", id)
|
||||||
res = request.urlopen("https://www.radioid.net/api/dmr/user/?id={0}".format(id), timeout=5).read()
|
res = request.urlopen("https://www.radioid.net/api/dmr/user/?id={0}".format(id), timeout=30).read()
|
||||||
data = json.loads(res.decode("utf-8"))
|
data = json.loads(res.decode("utf-8"))
|
||||||
cache.put(id, data)
|
cache.put(id, data)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user