method to add and print radio stations

workspace
Brendan Howell 4 years ago
parent 6c7a7bffd9
commit 15d4273929

@ -142,7 +142,7 @@ class Audio(Bureau):
# download the url
headers = {'User-Agent': 'Mozilla/5.0'}
try:
resp = requests.get(rl, timeout=20.0, headers=headers)
resp = requests.get(url, timeout=20.0, headers=headers)
except requests.ReadTimeout:
self.log.warning("Timeout reading url %s", url)
self.print_small("Error: timed out reading " + url)

Loading…
Cancel
Save