diff --git a/audioboom/channel.py b/audioboom/channel.py index 327efdc..a01e402 100644 --- a/audioboom/channel.py +++ b/audioboom/channel.py @@ -125,7 +125,7 @@ def save_episode(self, path, ep, root): f.write(i.content) # Does not download the audios, just outputs a list to be used in download_tool.py - #with open(join(path, "audio.mp3"), 'wb') as f: + # with open(join(path, "audio.mp3"), 'wb') as f: # pass # a = requests.get(ep.mp3, allow_redirects=True) # f.write(a.content) diff --git a/download_tool.py b/download_tool.py index 587b0a1..8cd1f69 100644 --- a/download_tool.py +++ b/download_tool.py @@ -3,7 +3,7 @@ for line in sys.stdin: [url, path] = line.split() - + a = requests.get(url, allow_redirects=True) if a.status_code != 200 or a.headers['Content-length'] == 94: print(f"{url}\t{path}")