fix: web interface radio display error, #94

This commit is contained in:
Terry Geng 2020-03-10 09:28:18 +08:00
parent a39199d54d
commit 30c481bc24

View File

@ -35,7 +35,7 @@ def get_radio_server_description(url):
error = error_traceback.rstrip().split("\n")[-1]
log.debug("radio: unsuccessful attempts on fetching radio description (shoutcast): " + error)
except ValueError:
return False # ?
return url
try:
r = requests.get(url_icecast, timeout=10)