def start(self):
if self.chapterurl:
if encode(self.noveldown.text) != '??':
dirs=decode(self.noveldir.text).split('/')
dirs=[i for i in dirs if i]
#??????
downdir=encode('/'+'/'.join(dirs))
if not os.path.exists(downdir):
os.makedirs(downdir)
#??downdir
self.downdir=downdir+'/'+encode(self.novelname.text)+'.txt'
self.novelshow.text=self.downdir+'\n'
self.noveldown.text='??'
thread.start_new_thread(self.newthread,())
else:
self.stop()
else:
self.novelshow.text='???????'
#????
评论列表
文章目录