From 32e36d8f020bc1d13ae6e50d96c18db4eb16b7ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 17 Mar 2020 22:47:45 +0100 Subject: [PATCH] [sexcom] replace tests --- gallery_dl/extractor/sexcom.py | 20 ++++++++++---------- test/test_results.py | 2 -- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/gallery_dl/extractor/sexcom.py b/gallery_dl/extractor/sexcom.py index 521b0349..b21ad328 100644 --- a/gallery_dl/extractor/sexcom.py +++ b/gallery_dl/extractor/sexcom.py @@ -101,22 +101,22 @@ class SexcomPinExtractor(SexcomExtractor): pattern = r"(?:https?://)?(?:www\.)?sex\.com/pin/(\d+)(?!.*#related$)" test = ( # picture - ("https://www.sex.com/pin/56714360/", { - "pattern": "https://cdn.sex.com/images/.+/2018/10/02/20037816.jpg", - "content": "e579e3283fea812d0545a3f79734b79bc3c51acb", + ("https://www.sex.com/pin/21241874-sexy-ecchi-girls-166/", { + "pattern": "https://cdn.sex.com/images/.+/2014/08/26/7637609.jpg", + "content": "ebe1814dadfebf15d11c6af4f6afb1a50d6c2a1c", "keyword": { "comments" : int, - "date" : "dt:2018-10-02 21:18:17", + "date" : "dt:2014-10-19 15:45:44", "extension": "jpg", - "filename" : "20037816", + "filename" : "7637609", "likes" : int, - "pin_id" : 56714360, + "pin_id" : 21241874, "repins" : int, "tags" : list, "thumbnail": str, - "title" : "Pin #56714360", + "title" : "Sexy Ecchi Girls 166", "type" : "picture", - "uploader" : "alguem", + "uploader" : "mangazeta", "url" : str, }, }), @@ -149,8 +149,8 @@ class SexcomRelatedPinExtractor(SexcomPinExtractor): subcategory = "related-pin" directory_fmt = ("{category}", "related {original_pin[pin_id]}") pattern = r"(?:https?://)?(?:www\.)?sex\.com/pin/(\d+).*#related$" - test = ("https://www.sex.com/pin/56714360/#related", { - "count": ">= 22", + test = ("https://www.sex.com/pin/21241874/#related", { + "count": ">= 20", }) def metadata(self): diff --git a/test/test_results.py b/test/test_results.py index 538abfab..8951d4df 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -30,8 +30,6 @@ BROKEN = { "35photo", "mangapark", "photobucket", - "sexcom", - "hentaicafe", "worldthree", }