[shimmie2] remove 'loudbooru.com'

This commit is contained in:
Mike Fährmann
2024-10-10 18:32:42 +02:00
parent 51ceb33b6c
commit 09d4c281b6
3 changed files with 2 additions and 50 deletions

View File

@@ -1369,12 +1369,6 @@ Consider all listed sites to potentially be NSFW.
<tr>
<td colspan="4"><strong>Shimmie2 Instances</strong></td>
</tr>
<tr>
<td>Loudbooru</td>
<td>https://loudbooru.com/</td>
<td>Posts, Tag Searches</td>
<td></td>
</tr>
<tr>
<td>Giantessbooru</td>
<td>https://sizechangebooru.com/</td>

View File

@@ -69,11 +69,6 @@ class Shimmie2Extractor(BaseExtractor):
BASE_PATTERN = Shimmie2Extractor.update({
"loudbooru": {
"root": "https://loudbooru.com",
"pattern": r"loudbooru\.com",
"cookies": {"ui-tnc-agreed": "true"},
},
"giantessbooru": {
"root": "https://sizechangebooru.com",
"pattern": r"(?:sizechange|giantess)booru\.com",
@@ -105,7 +100,7 @@ class Shimmie2TagExtractor(Shimmie2Extractor):
directory_fmt = ("{category}", "{search_tags}")
file_url_fmt = "{}/_images/{}/{}%20-%20{}.{}"
pattern = BASE_PATTERN + r"post/list/([^/?#]+)(?:/(\d+))?()"
example = "https://loudbooru.com/post/list/TAG/1"
example = "https://vidya.pics/post/list/TAG/1"
def __init__(self, match):
Shimmie2Extractor.__init__(self, match)
@@ -206,7 +201,7 @@ class Shimmie2PostExtractor(Shimmie2Extractor):
"""Extractor for single shimmie2 posts"""
subcategory = "post"
pattern = BASE_PATTERN + r"post/view/(\d+)"
example = "https://loudbooru.com/post/view/12345"
example = "https://vidya.pics/post/view/12345"
def __init__(self, match):
Shimmie2Extractor.__init__(self, match)

View File

@@ -1,37 +0,0 @@
# -*- 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://loudbooru.com/post/list/original_character/1",
"#category": ("shimmie2", "loudbooru", "tag"),
"#class" : shimmie2.Shimmie2TagExtractor,
"#pattern" : r"https://loudbooru\.com/_images/[0-9a-f]{32}/\d+",
"#range" : "1-100",
"#count" : 100,
},
{
"#url" : "https://loudbooru.com/post/view/33828",
"#category": ("shimmie2", "loudbooru", "post"),
"#class" : shimmie2.Shimmie2PostExtractor,
"#pattern" : r"https://loudbooru\.com/_images/.+\.png",
"#sha1_content": "a4755f787ba23ae2aa297a46810f802ca9032739",
"extension": "png",
"file_url" : "https://loudbooru.com/_images/ca2638d903c86e8337fe9aeb4974be88/33828%20-%202020%20artist%3Astikyfinkaz%20character%3Alisa_loud%20cover%20fanfiction%3Aplatz_eins%20frowning%20half-closed_eyes%20solo%20text%20title_card.png",
"filename" : "33828 - 2020 artist:stikyfinkaz character:lisa_loud cover fanfiction:platz_eins frowning half-closed_eyes solo text title_card",
"height" : 1920,
"id" : 33828,
"md5" : "ca2638d903c86e8337fe9aeb4974be88",
"tags" : "2020 artist:stikyfinkaz character:lisa_loud cover fanfiction:platz_eins frowning half-closed_eyes solo text title_card",
"width" : 1078,
},
)