@@ -803,6 +803,7 @@ Default
|
|||||||
* ``[Danbooru]``
|
* ``[Danbooru]``
|
||||||
* ``mangadex``
|
* ``mangadex``
|
||||||
* ``weasyl``
|
* ``weasyl``
|
||||||
|
* ``[wikimedia]``
|
||||||
* ``zerochan``
|
* ``zerochan``
|
||||||
``"gallery-dl/VERSION (by mikf)"``
|
``"gallery-dl/VERSION (by mikf)"``
|
||||||
* ``[E621]``
|
* ``[E621]``
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2022 Ailothaen
|
# Copyright 2022 Ailothaen
|
||||||
# Copyright 2024-2025 Mike Fährmann
|
# Copyright 2024-2026 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"""Extractors for Wikimedia sites"""
|
"""Extractors for Wikimedia sites"""
|
||||||
|
|
||||||
from .common import BaseExtractor, Message
|
from .common import BaseExtractor, Message
|
||||||
from .. import text, exception
|
from .. import text, util, exception
|
||||||
from ..cache import cache
|
from ..cache import cache
|
||||||
|
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ class WikimediaExtractor(BaseExtractor):
|
|||||||
basecategory = "wikimedia"
|
basecategory = "wikimedia"
|
||||||
filename_fmt = "{filename} ({sha1[:8]}).{extension}"
|
filename_fmt = "{filename} ({sha1[:8]}).{extension}"
|
||||||
archive_fmt = "{sha1}"
|
archive_fmt = "{sha1}"
|
||||||
|
useragent = util.USERAGENT_GALLERYDL
|
||||||
request_interval = (1.0, 2.0)
|
request_interval = (1.0, 2.0)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user