fixed video error
This commit is contained in:
1 parent
c81106c946
commit
a6d004759b
1 file changed
+4
-3
+4
-3
@@ -82,11 +82,12 @@ def get_subreddit_threads():
|
||||
try:
|
||||
content["thread_url"] = submission.url
|
||||
content["thread_title"] = submission.title
|
||||
# ontent["thread_content"] = submission.content
|
||||
# content["thread_content"] = submission.content
|
||||
content["comments"] = []
|
||||
|
||||
for top_level_comment in submission.comments:
|
||||
if not top_level_comment.stickied and top_level_comment.removed_by_category is not None: # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78
|
||||
if top_level_comment.body in ["[removed]", "[deleted]"]:
|
||||
continue # # see https://github.com/JasonLovesDoggo/RedditVideoMakerBot/issues/78
|
||||
if not top_level_comment.stickied:
|
||||
if len(top_level_comment.body) <= int(environ["MAX_COMMENT_LENGTH"]):
|
||||
content["comments"].append(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user