put common directory- and filename formats in base classes

This commit is contained in:
Mike Fährmann
2017-05-30 12:10:16 +02:00
parent bce51e90a5
commit c184e47ee3
12 changed files with 3 additions and 22 deletions

View File

@@ -54,7 +54,6 @@ class ImgurImageExtractor(ImgurExtractor):
"""Extractor for individual images from imgur.com"""
category = "imgur"
subcategory = "image"
directory_fmt = ["{category}"]
filename_fmt = "{category}_{hash}.{extension}"
pattern = [(r"(?:https?://)?(?:m\.|www\.)?imgur\.com/"
r"(?:gallery/)?((?!gallery)[^/?&#]{7})/?"),