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' type as null
This commit is contained in:
@@ -349,16 +349,15 @@ def redditSearcher(posts,SINGLE_POST=False):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
postsFile.add({subCount:[details]})
|
result = checkIfMatching(submission)
|
||||||
details = checkIfMatching(submission)
|
|
||||||
|
|
||||||
if details is not None:
|
if result is not None:
|
||||||
if not details["postType"] == "self":
|
details = result
|
||||||
orderCount += 1
|
orderCount += 1
|
||||||
printSubmission(submission,subCount,orderCount)
|
printSubmission(submission,subCount,orderCount)
|
||||||
subList.append(details)
|
subList.append(details)
|
||||||
else:
|
|
||||||
postsFile.add({subCount:[details]})
|
postsFile.add({subCount:[details]})
|
||||||
|
|
||||||
if not len(subList) == 0:
|
if not len(subList) == 0:
|
||||||
print(
|
print(
|
||||||
|
|||||||
Reference in New Issue
Block a user