fixed automatic dir names some more

This commit is contained in:
iou1name 2018-04-06 19:19:59 -04:00
parent 0141323473
commit c02288dc97

View File

@ -38,9 +38,8 @@ def Scrape(thread_url, output=None, original_filename=False, combo=False):
subject = soup.find(class_="post_title") subject = soup.find(class_="post_title")
if subject: if subject:
subject = subject.text subject = subject.text
else:
subject = ""
dirName += [subject] dirName += [subject]
dirName = "-".join(dirName) dirName = "-".join(dirName)
output = os.path.join(output, dirName) output = os.path.join(output, dirName)