From 15d427392985bf07c06288f4bea2239bf077005c Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sun, 22 Nov 2020 17:37:40 +0100 Subject: [PATCH] method to add and print radio stations --- screenless/bureau/audio/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/audio/audio.py b/screenless/bureau/audio/audio.py index 0ce7326..e9de4ac 100644 --- a/screenless/bureau/audio/audio.py +++ b/screenless/bureau/audio/audio.py @@ -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)