mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2025-10-29 17:40:15 +00:00
Fixed the bug that causes tagging all the posts' types as null in single post
This commit is contained in:
@@ -324,16 +324,15 @@ def redditSearcher(posts,SINGLE_POST=False):
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
postsFile.add({subCount:[details]})
|
||||
details = checkIfMatching(submission)
|
||||
result = checkIfMatching(submission)
|
||||
|
||||
if details is not None:
|
||||
if not details["postType"] == "self":
|
||||
orderCount += 1
|
||||
printSubmission(submission,subCount,orderCount)
|
||||
subList.append(details)
|
||||
else:
|
||||
postsFile.add({subCount:[details]})
|
||||
if result is not None:
|
||||
details = result
|
||||
orderCount += 1
|
||||
printSubmission(submission,subCount,orderCount)
|
||||
subList.append(details)
|
||||
|
||||
postsFile.add({subCount:[details]})
|
||||
|
||||
else:
|
||||
for submission in posts:
|
||||
|
||||
Reference in New Issue
Block a user