[szurubooru] support 'visuabusters.com/booru' (#6729)
This commit is contained in:
@@ -1485,6 +1485,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>
|
||||||
|
<td>VISUABUSTERS</td>
|
||||||
|
<td>https://www.visuabusters.com/booru/</td>
|
||||||
|
<td>Posts, Tag Searches</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4"><strong>URL Shorteners</strong></td>
|
<td colspan="4"><strong>URL Shorteners</strong></td>
|
||||||
|
|||||||
@@ -92,6 +92,10 @@ BASE_PATTERN = SzurubooruExtractor.update({
|
|||||||
"root": "https://snootbooru.com",
|
"root": "https://snootbooru.com",
|
||||||
"pattern": r"snootbooru\.com",
|
"pattern": r"snootbooru\.com",
|
||||||
},
|
},
|
||||||
|
"visuabusters": {
|
||||||
|
"root": "https://www.visuabusters.com/booru",
|
||||||
|
"pattern": r"(?:www\.)?visuabusters\.com/booru",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ CATEGORY_MAP = {
|
|||||||
"vanillarock" : "もえぴりあ",
|
"vanillarock" : "もえぴりあ",
|
||||||
"vidyart2" : "/v/idyart2",
|
"vidyart2" : "/v/idyart2",
|
||||||
"vidyapics" : "Vidya Booru",
|
"vidyapics" : "Vidya Booru",
|
||||||
|
"visuabusters" : "VISUABUSTERS",
|
||||||
"vk" : "VK",
|
"vk" : "VK",
|
||||||
"vsco" : "VSCO",
|
"vsco" : "VSCO",
|
||||||
"wallpapercave" : "Wallpaper Cave",
|
"wallpapercave" : "Wallpaper Cave",
|
||||||
|
|||||||
39
test/results/visuabusters.py
Normal file
39
test/results/visuabusters.py
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# -*- 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 szurubooru
|
||||||
|
|
||||||
|
|
||||||
|
__tests__ = (
|
||||||
|
{
|
||||||
|
"#url" : "https://www.visuabusters.com/booru/posts/query=mincy_mouse",
|
||||||
|
"#category": ("szurubooru", "visuabusters", "tag"),
|
||||||
|
"#class" : szurubooru.SzurubooruTagExtractor,
|
||||||
|
"#pattern" : r"https://www\.visuabusters\.com/booru/data/posts/visuabusters_\d+_\w{16}\.\w+",
|
||||||
|
"#count" : range(2, 5),
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://www.visuabusters.com/booru/posts/query=",
|
||||||
|
"#category": ("szurubooru", "visuabusters", "tag"),
|
||||||
|
"#class" : szurubooru.SzurubooruTagExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://visuabusters.com/booru/posts",
|
||||||
|
"#category": ("szurubooru", "visuabusters", "tag"),
|
||||||
|
"#class" : szurubooru.SzurubooruTagExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://www.visuabusters.com/booru/post/2485",
|
||||||
|
"#category": ("szurubooru", "visuabusters", "post"),
|
||||||
|
"#class" : szurubooru.SzurubooruPostExtractor,
|
||||||
|
"#urls" : "https://www.visuabusters.com/booru/data/posts/visuabusters_2485_ynmXFhNmBs3x0cCm.gif",
|
||||||
|
"#sha1_content": "781fc0f063503d9d3f282558b9fcd69e37045e88",
|
||||||
|
},
|
||||||
|
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user