[pinterest] ignore 'story_pin_product_sticker_block' blocks (#7563)
This commit is contained in:
@@ -132,6 +132,9 @@ class PinterestExtractor(Extractor):
|
||||
"extension": "txt",
|
||||
"media_id": block.get("id")}
|
||||
|
||||
elif type == "story_pin_product_sticker_block":
|
||||
continue
|
||||
|
||||
elif type == "story_pin_static_sticker_block":
|
||||
continue
|
||||
|
||||
|
||||
@@ -74,6 +74,13 @@ __tests__ = (
|
||||
"#urls" : "https://i.pinimg.com/originals/70/ab/31/70ab31654b2329e2ec74a39adf7ee683.jpg",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pinterest.com/pin/777856166916298367",
|
||||
"#comment" : "story pin with 'story_pin_product_sticker_block' blocks (#7563)",
|
||||
"#class" : pinterest.PinterestPinExtractor,
|
||||
"#urls" : "https://i.pinimg.com/originals/3e/0a/2e/3e0a2e6c1173866c530c8ffe18d08b9f.jpg",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.pinterest.com/pin/858146903966145188/",
|
||||
"#category": ("", "pinterest", "pin"),
|
||||
|
||||
Reference in New Issue
Block a user