[shimmie2] support 'co.llection.pics' (#8166)

This commit is contained in:
Mike Fährmann
2025-09-03 21:59:05 +02:00
parent 0fcd34d15e
commit 8967a6e87e
4 changed files with 59 additions and 0 deletions

View File

@@ -1585,6 +1585,12 @@ Consider all listed sites to potentially be NSFW.
<td>Posts, Tag Searches</td>
<td></td>
</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">
<td colspan="4"><strong>szurubooru Instances</strong></td>

View File

@@ -81,6 +81,10 @@ BASE_PATTERN = Shimmie2Extractor.update({
"root": "https://noz.rip/booru",
"pattern": r"noz\.rip/booru",
},
"thecollectionS": {
"root": "https://co.llection.pics",
"pattern": r"co\.llection\.pics",
},
}) + r"/(?:index\.php\?q=/?)?"

View File

@@ -172,6 +172,7 @@ CATEGORY_MAP = {
"thatpervert" : "ThatPervert",
"thebarchive" : "The /b/ Archive",
"thecollection" : "The /co/llection",
"thecollectionS" : "The /co/llection",
"tiktok" : "TikTok",
"tmohentai" : "TMOHentai",
"tumblrgallery" : "TumblrGallery",

View 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,
},
)