1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[thebarchive] add thread extractor

This commit is contained in:
Mike Fährmann 2017-07-23 15:45:17 +02:00
parent b8cf434bb0
commit f53bf1a323
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 22 additions and 0 deletions

View File

@ -75,6 +75,7 @@ modules = [
"senmanga",
"sensescans",
"spectrumnexus",
"thebarchive",
"tumblr",
"twitter",
"worldthree",

View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2017 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.
"""Extract images from https://thebarchive.com/"""
from . import chan
class ThebarchiveThreadExtractor(chan.FoolfuukaThreadExtractor):
"""Extractor for images from threads on thebarchive.com"""
category = "thebarchive"
root = "https://thebarchive.com"
pattern = [r"(?:https?://)?thebarchive\.com/([^/]+)/thread/(\d+)"]
test = [("https://thebarchive.com/b/thread/739772332/", {
"url": "e8b18001307d130d67db31740ce57c8561b5d80c",
})]