fixed automatic dir names some more
This commit is contained in:
parent
0141323473
commit
c02288dc97
|
@ -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:
|
dirName += [subject]
|
||||||
subject = ""
|
|
||||||
dirName += [subject]
|
|
||||||
dirName = "-".join(dirName)
|
dirName = "-".join(dirName)
|
||||||
output = os.path.join(output, dirName)
|
output = os.path.join(output, dirName)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user