1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[redgifs] add image extractor (#724)

This commit is contained in:
Mike Fährmann 2020-05-10 00:31:42 +02:00
parent 11d3247c85
commit f557cac074
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
4 changed files with 24 additions and 0 deletions

View File

@ -105,6 +105,7 @@ Read Comic Online https://readcomiconline.to/ Comic Issues, Comics
Realbooru https://realbooru.com/ Pools, Posts, Tag Searches
RebeccaBlackTech https://rbt.asia/ Threads
Reddit https://www.reddit.com/ |reddit-C| Optional (OAuth)
RedGIFs https://redgifs.com/ individual Images
rule #34 https://rule34.paheal.net/ Posts, Tag Searches
Rule 34 https://rule34.xxx/ Pools, Posts, Tag Searches
Safebooru https://safebooru.org/ Pools, Posts, Tag Searches

View File

@ -94,6 +94,7 @@ modules = [
"readcomiconline",
"realbooru",
"reddit",
"redgifs",
"rule34",
"safebooru",
"sankaku",

View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Mike Fährmann
#
# 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.
"""Extractors for https://redgifs.com/"""
from .gfycat import GfycatImageExtractor
class RedgifsImageExtractor(GfycatImageExtractor):
"""Extractor for individual images from redgifs.com"""
category = "redgifs"
pattern = r"(?:https?://)?redgifs\.com/watch/([A-Za-z]+)"
test = ("https://redgifs.com/watch/foolishforkedabyssiniancat", {
"pattern": "https://giant.gfycat.com/FoolishForkedAbyssiniancat.mp4",
"content": "f6e03f1df9a2ff2a74092f53ee7580d2fb943533",
})

View File

@ -68,6 +68,7 @@ CATEGORY_MAP = {
"powermanga" : "PowerManga",
"readcomiconline": "Read Comic Online",
"rbt" : "RebeccaBlackTech",
"redgifs" : "RedGIFs",
"rule34" : "Rule 34",
"sankaku" : "Sankaku Channel",
"sankakucomplex" : "Sankaku Complex",