[pornpics] update 'channel' extraction & add test

change 'channel' to a list, since extracting both 'channel' and
'channels' does not really work with text.extract_from()
This commit is contained in:
Mike Fährmann
2024-02-13 23:48:46 +01:00
parent 32472d7d6c
commit 1d1ffe3317
2 changed files with 37 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ __tests__ = (
"Amateur",
"Sexy",
],
"channel" : "FTV MILFs",
"channel" : ["FTV MILFs"],
"count" : 17,
"gallery_id": 62610699,
"models" : ["Danielle"],
@@ -46,6 +46,41 @@ __tests__ = (
"slug": "british-beauty-danielle-flashes-hot-breasts-ass-and-snatch-in-the-forest",
},
{
"#url" : "https://www.pornpics.com/galleries/four-american-hotties-in-swimsuit-showing-off-their-sexy-booty-and-bare-legs-59500405/",
"#comment" : "more than one 'channel' (#5195)",
"#category": ("", "pornpics", "gallery"),
"#class" : pornpics.PornpicsGalleryExtractor,
"count" : 16,
"num" : range(1, 16),
"gallery_id": 59500405,
"slug" : "four-american-hotties-in-swimsuit-showing-off-their-sexy-booty-and-bare-legs",
"title" : "Four American hotties in swimsuit showing off their sexy booty and bare legs",
"views" : range(50000, 100000),
"models" : [
"Kayla West",
"Layla Price",
"Marley Blaze",
"Mena Mason",
],
"categories": [
"Outdoor",
"Asian",
"Pornstar",
"Brunette",
"Blonde",
],
"channel" : [
"Adult Time",
"Fame Digital",
],
"tags" : [
"Nature",
"Asian Outdoor",
],
},
{
"#url" : "https://www.pornpics.com/tags/summer-dress/",
"#category": ("", "pornpics", "tag"),