Update imgur.py to include 'title' of single image (#40)
Add {title} keyword.. Images on Imgur don't necessarily have a title, but I think most of them do, and since this should not break anything else..
This commit is contained in:
parent
a85f06d2d1
commit
77bf923c56
@ -52,7 +52,7 @@ class ImgurExtractor(Extractor):
|
||||
class ImgurImageExtractor(ImgurExtractor):
|
||||
"""Extractor for individual images from imgur.com"""
|
||||
subcategory = "image"
|
||||
filename_fmt = "{category}_{hash}.{extension}"
|
||||
filename_fmt = "{category}_{hash}_{title}.{extension}"
|
||||
pattern = [(r"(?:https?://)?(?:m\.|www\.)?imgur\.com/"
|
||||
r"(?:gallery/)?((?!gallery)[^/?&#]{7})/?"),
|
||||
(r"(?:https?://)?i\.imgur\.com/([^/?&#.]{5,7})\.")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user