update extractor docstrings

This commit is contained in:
Mike Fährmann
2017-06-28 17:39:07 +02:00
parent b757687606
commit 1dac76fd1c
8 changed files with 11 additions and 10 deletions

View File

@@ -191,7 +191,7 @@ class DeviantartDeviationExtractor(DeviantartExtractor):
class DeviantartFavoriteExtractor(DeviantartExtractor):
"""Extractor for an artist's favourites"""
"""Extractor for an artist's favorites"""
subcategory = "favorite"
directory_fmt = ["{category}", "{subcategory}",
"{collection[owner]} - {collection[title]}"]
@@ -245,7 +245,7 @@ class DeviantartFavoriteExtractor(DeviantartExtractor):
class DeviantartJournalExtractor(DeviantartExtractor):
"""Extractor for single deviations"""
"""Extractor for an artist's journals"""
subcategory = "journal"
pattern = [r"(?:https?://)?([^.]+)\.deviantart\.com/journal/?$"]
test = [("http://shimoda7.deviantart.com/journal/", {

View File

@@ -17,7 +17,7 @@ import requests
class ExhentaiGalleryExtractor(Extractor):
"""Extractor for image-galleries from exhentai.org"""
"""Extractor for image galleries from exhentai.org"""
category = "exhentai"
subcategory = "gallery"
directory_fmt = ["{category}", "{gallery-id}"]

View File

@@ -213,6 +213,7 @@ class FlickrFavoriteExtractor(FlickrExtractor):
class FlickrSearchExtractor(FlickrExtractor):
"""Extractor for flickr photos based on search results"""
subcategory = "search"
directory_fmt = ["{category}", "{subcategory}", "{search[text]}"]
pattern = [r"(?:https?://)?(?:www\.)?flickr\.com/search/?\?([^#]+)"]

View File

@@ -14,7 +14,7 @@ import json
class NhentaiGalleryExtractor(Extractor):
"""Extractor for image-galleries from nhentai.net"""
"""Extractor for image galleries from nhentai.net"""
category = "nhentai"
subcategory = "gallery"
directory_fmt = ["{category}", "{gallery-id} {title}"]

View File

@@ -50,9 +50,9 @@ class PawooExtractor(Extractor):
return attachments
class PawooAccountExtractor(PawooExtractor):
class PawooUserExtractor(PawooExtractor):
"""Extractor for all images of an account/user on pawoo.net"""
subcategory = "account"
subcategory = "user"
pattern = [r"(?:https?://)?pawoo\.net/(@[^/]+)/?$"]
test = [
("https://pawoo.net/@kuroda", {

View File

@@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "0.9.0"
__version__ = "0.9.1-dev"