From 277c505b8d35cea7938ee7ca6cc64f938a211ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 3 Oct 2016 16:14:46 +0200 Subject: [PATCH] [picmaniac] add extractor --- gallery_dl/extractor/__init__.py | 1 + gallery_dl/extractor/picmaniac.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gallery_dl/extractor/picmaniac.py diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index 16003bea..9b6ecf99 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -54,6 +54,7 @@ modules = [ "mangastream", "nhentai", "nijie", + "picmaniac", "pinterest", "powermanga", "rapidimg", diff --git a/gallery_dl/extractor/picmaniac.py b/gallery_dl/extractor/picmaniac.py new file mode 100644 index 00000000..e43d37d3 --- /dev/null +++ b/gallery_dl/extractor/picmaniac.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +# Copyright 2016 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 http://pic-maniac.com/""" + +from . import chronos + +class PicmaniacImageExtractor(chronos.ChronosImageExtractor): + """Extractor for single images from pic-maniac.com""" + category = "picmaniac" + pattern = [r"(?:https?://)?(?:www\.)?pic-maniac\.com/([a-z0-9]{12})"] + url_base = "http://pic-maniac.com/" + test = []