[pinterest] ignore 'story_pin_static_sticker_block' blocks (#7251)

This commit is contained in:
Mike Fährmann
2025-03-28 20:16:16 +01:00
parent e0211bdaa5
commit c4d08b24e9
2 changed files with 10 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ class PinterestExtractor(Extractor):
"extension": "txt",
"media_id": block.get("id")}
elif type == "story_pin_static_sticker_block":
continue
else:
self.log.warning("%s: Unsupported story block '%s'",
pin.get("id"), type)

View File

@@ -67,6 +67,13 @@ __tests__ = (
"#urls" : "text:Everskies character+outfits i made",
},
{
"#url" : "https://www.pinterest.com/pin/1025272671423645004/",
"#comment" : "story pin with 'story_pin_static_sticker_block' blocks",
"#class" : pinterest.PinterestPinExtractor,
"#urls" : "https://i.pinimg.com/originals/70/ab/31/70ab31654b2329e2ec74a39adf7ee683.jpg",
},
{
"#url" : "https://www.pinterest.com/pin/858146903966145188/",
"#category": ("", "pinterest", "pin"),