[reddit] add 'embeds' option (#6357)

This commit is contained in:
Mike Fährmann
2024-10-22 17:03:11 +02:00
parent 33161da121
commit b08da4ffc7
3 changed files with 20 additions and 2 deletions

View File

@@ -171,7 +171,6 @@ __tests__ = (
{
"#url" : "https://www.reddit.com/r/RobloxArt/comments/15ko0qu/",
"#comment" : "comment embeds (#5366)",
"#category": ("", "reddit", "submission"),
"#class" : reddit.RedditSubmissionExtractor,
"#options" : {"comments": 10},
"#urls" : (
@@ -180,6 +179,14 @@ __tests__ = (
),
},
{
"#url" : "https://www.reddit.com/r/RobloxArt/comments/15ko0qu/",
"#comment" : "disabled comment embeds (#6357)",
"#class" : reddit.RedditSubmissionExtractor,
"#options" : {"comments": 10, "embeds": False},
"#urls" : "https://i.redd.it/ppt5yciyipgb1.jpg",
},
{
"#url" : "https://www.reddit.com/user/TheSpiritTree/comments/srilyf/",
"#comment" : "user page submission (#2301)",