[shimmie2] support 'co.llection.pics' (#8166)
This commit is contained in:
@@ -1585,6 +1585,12 @@ Consider all listed sites to potentially be NSFW.
|
|||||||
<td>Posts, Tag Searches</td>
|
<td>Posts, Tag Searches</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr id="thecollectionS" title="thecollectionS">
|
||||||
|
<td>The /co/llection</td>
|
||||||
|
<td>https://co.llection.pics/</td>
|
||||||
|
<td>Posts, Tag Searches</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr id="szurubooru" title="szurubooru">
|
<tr id="szurubooru" title="szurubooru">
|
||||||
<td colspan="4"><strong>szurubooru Instances</strong></td>
|
<td colspan="4"><strong>szurubooru Instances</strong></td>
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ BASE_PATTERN = Shimmie2Extractor.update({
|
|||||||
"root": "https://noz.rip/booru",
|
"root": "https://noz.rip/booru",
|
||||||
"pattern": r"noz\.rip/booru",
|
"pattern": r"noz\.rip/booru",
|
||||||
},
|
},
|
||||||
|
"thecollectionS": {
|
||||||
|
"root": "https://co.llection.pics",
|
||||||
|
"pattern": r"co\.llection\.pics",
|
||||||
|
},
|
||||||
}) + r"/(?:index\.php\?q=/?)?"
|
}) + r"/(?:index\.php\?q=/?)?"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ CATEGORY_MAP = {
|
|||||||
"thatpervert" : "ThatPervert",
|
"thatpervert" : "ThatPervert",
|
||||||
"thebarchive" : "The /b/ Archive",
|
"thebarchive" : "The /b/ Archive",
|
||||||
"thecollection" : "The /co/llection",
|
"thecollection" : "The /co/llection",
|
||||||
|
"thecollectionS" : "The /co/llection",
|
||||||
"tiktok" : "TikTok",
|
"tiktok" : "TikTok",
|
||||||
"tmohentai" : "TMOHentai",
|
"tmohentai" : "TMOHentai",
|
||||||
"tumblrgallery" : "TumblrGallery",
|
"tumblrgallery" : "TumblrGallery",
|
||||||
|
|||||||
48
test/results/thecollectionS.py
Normal file
48
test/results/thecollectionS.py
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
|
from gallery_dl.extractor import shimmie2
|
||||||
|
|
||||||
|
|
||||||
|
__tests__ = (
|
||||||
|
{
|
||||||
|
"#url" : "https://co.llection.pics/post/view/23",
|
||||||
|
"#category": ("shimmie2", "thecollectionS", "post"),
|
||||||
|
"#class" : shimmie2.Shimmie2PostExtractor,
|
||||||
|
"#results" : "https://co.llection.pics/_images/0f431221d96251e6db62cb2c57f5b29f/23%20-%20crossovers%20dc%20goku%20kal-el%20superman.jpg",
|
||||||
|
|
||||||
|
"extension": "jpg",
|
||||||
|
"file_url" : "https://co.llection.pics/_images/0f431221d96251e6db62cb2c57f5b29f/23%20-%20crossovers%20dc%20goku%20kal-el%20superman.jpg",
|
||||||
|
"filename" : "23 - crossovers dc goku kal-el superman",
|
||||||
|
"height" : 628,
|
||||||
|
"id" : 23,
|
||||||
|
"md5" : "0f431221d96251e6db62cb2c57f5b29f",
|
||||||
|
"size" : 0,
|
||||||
|
"tags" : "crossovers dc goku kal-el superman",
|
||||||
|
"width" : 1124,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://co.llection.pics/post/list/crossovers/1",
|
||||||
|
"#category": ("shimmie2", "thecollectionS", "tag"),
|
||||||
|
"#class" : shimmie2.Shimmie2TagExtractor,
|
||||||
|
"#range" : "1-80",
|
||||||
|
"#pattern" : r"https://co\.llection\.pics/_images/\w{32}/\d+.+\.(jpe?g|png|gif)",
|
||||||
|
"#count" : 80,
|
||||||
|
|
||||||
|
"id" : int,
|
||||||
|
"filename" : str,
|
||||||
|
"extension" : {"jpg", "jpeg", "png", "gif"},
|
||||||
|
"file_url" : r"re:https://co.llection.pics/_images/\w{32}/.+",
|
||||||
|
"width" : range(100, 8_000),
|
||||||
|
"height" : range(100, 8_000),
|
||||||
|
"md5" : r"re:\w{32}",
|
||||||
|
"search_tags": "crossovers",
|
||||||
|
"size" : range(1_000, 8_000_000),
|
||||||
|
"tags" : str,
|
||||||
|
},
|
||||||
|
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user