increase timeout (it's asynchronous, so we can wait)

This commit is contained in:
Jakob Ketterl 2019-06-05 00:13:54 +02:00
parent 546249e950
commit 4934e91e74

View File

@ -38,7 +38,7 @@ class DmrMetaEnricher(object):
cache = DmrCache.getSharedInstance()
try:
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"))
cache.put(id, data)
except json.JSONDecodeError: