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