You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pasted multiple links into inputs.txt, one on each line, downloader.py crashed every time I started it. I received the following traceback:
Traceback (most recent call last):
File "D:\Users\Andrew Ryan Crider\Documents\Documents\Misc Documents\Programming\python\khinsider-mp3-downloader-master\downloader.py", line 98, in <module>
fetch_from_url(line)
File "D:\Users\Andrew Ryan Crider\Documents\Documents\Misc Documents\Programming\python\khinsider-mp3-downloader-master\downloader.py", line 30, in fetch_from_url
os.makedirs(dir_name)
File "C:\Users\Andrew Ryan Crider\AppData\Local\Programs\Python\Python38-32\lib\os.py", line 223, in makedirs
mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'downloads/axiom-verge-soundtrack\n'
However, I was able to get the downloader to work properly once I inserted the following lines of code between lines 97 and 98:
if line.endswith('\n'):
line = line.replace('\n','')
In my copy of downloader.py, likes 97 through 100 now look like this:
for line in file:
if line.endswith('\n'):
line = line.replace('\n','')
fetch_from_url(line)
My downloader was having trouble with newline characters. I'm not sure if this was a problem with the downloader or the way I was formatting inputs.txt, but I thought to point this out to you just in case.
The text was updated successfully, but these errors were encountered:
When I pasted multiple links into inputs.txt, one on each line, downloader.py crashed every time I started it. I received the following traceback:
However, I was able to get the downloader to work properly once I inserted the following lines of code between lines 97 and 98:
In my copy of downloader.py, likes 97 through 100 now look like this:
My downloader was having trouble with newline characters. I'm not sure if this was a problem with the downloader or the way I was formatting inputs.txt, but I thought to point this out to you just in case.
The text was updated successfully, but these errors were encountered: