Still wasn't working on windows
if savedir did not exists, then downloading would never work. Now if it does not exist, it is created, or it crashes and burns if it isn't allowed.
This commit is contained in:
parent
7707d5d3c6
commit
cc571e6d80
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ import progressbar
|
||||||
import config
|
import config
|
||||||
|
|
||||||
savedir = config.Configuration().get_download_location()
|
savedir = config.Configuration().get_download_location()
|
||||||
|
if not os.path.exists(savedir):
|
||||||
|
os.makedirs(savedir)
|
||||||
|
|
||||||
def get_thread_links(baseurl):
|
def get_thread_links(baseurl):
|
||||||
myparser = htmlparser.MyParser()
|
myparser = htmlparser.MyParser()
|
||||||
|
|
Loading…
Reference in a new issue