summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/8chan.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-11-10 22:14:10 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-11-10 22:14:10 -0500
commit0c73e982fa596da07f23b377621ab894a9e64884 (patch)
tree96f6a40a5656c15a2ec7217a8a1efcff5827bcbb /gallery_dl/extractor/8chan.py
parent40f5fe6edef268632d3bc484e85e5b37bad67bff (diff)
New upstream version 1.11.1upstream/1.11.1
Diffstat (limited to 'gallery_dl/extractor/8chan.py')
-rw-r--r--gallery_dl/extractor/8chan.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/gallery_dl/extractor/8chan.py b/gallery_dl/extractor/8chan.py
deleted file mode 100644
index e526da3..0000000
--- a/gallery_dl/extractor/8chan.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright 2014-2019 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 and videos from https://8ch.net/"""
-
-from . import chan
-
-
-class InfinitychanThreadExtractor(chan.ChanThreadExtractor):
- """Extractor for images from threads from 8ch.net"""
- category = "8chan"
- filename_fmt = "{time}-{filename}{ext}"
- pattern = r"(?:https?://)?(?:www\.)?8ch\.net/([^/]+)/res/(\d+)"
- test = ("https://8ch.net/builders/res/3.html", {
- "url": "5d85c0509f907f217aea379f862b41bf3d01f645",
- "keyword": "0c497190c0c0f826925fde09815351d01869c783",
- })
- api_url = "https://8ch.net/{board}/res/{thread}.json"
- file_url = "https://media.8ch.net/{board}/src/{tim}{ext}"
- file_url_v2 = "https://media.8ch.net/file_store/{tim}{ext}"
-
- def build_url(self, post):
- fmt = self.file_url if len(post["tim"]) < 64 else self.file_url_v2
- return fmt.format_map(post)