diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-13 15:56:57 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-13 15:56:57 +0100 |
commit | acc46fc3497a66a427b795b4a22c6e71d69185a1 (patch) | |
tree | 2d315b838a76435fc456b972c99c28d1732b2f70 /pyload/plugins/crypter/ImgurComAlbum.py | |
parent | Code fixes (diff) | |
download | pyload-acc46fc3497a66a427b795b4a22c6e71d69185a1.tar.xz |
Update
Diffstat (limited to 'pyload/plugins/crypter/ImgurComAlbum.py')
-rw-r--r-- | pyload/plugins/crypter/ImgurComAlbum.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/pyload/plugins/crypter/ImgurComAlbum.py b/pyload/plugins/crypter/ImgurComAlbum.py deleted file mode 100644 index b1e7d3c37..000000000 --- a/pyload/plugins/crypter/ImgurComAlbum.py +++ /dev/null @@ -1,27 +0,0 @@ -import re - -from pyload.plugins.internal.SimpleCrypter import SimpleCrypter -from pyload.utils import uniqify - - -class ImgurComAlbum(SimpleCrypter): - __name = "ImgurComAlbum" - __type = "crypter" - __version = "0.51" - - __pattern = r'https?://(?:www\.|m\.)?imgur\.com/(a|gallery|)/?\w{5,7}' - __config = [("use_subfolder", "bool", "Save package to subfolder", True), - ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] - - __description = """Imgur.com decrypter plugin""" - __license = "GPLv3" - __authors = [("nath_schwarz", "nathan.notwhite@gmail.com")] - - - NAME_PATTERN = r'(?P<N>.+?) - Imgur' - LINK_PATTERN = r'i\.imgur\.com/\w{7}s?\.(?:jpeg|jpg|png|gif|apng)' - - - def getLinks(self): - f = lambda url: "http://" + re.sub(r'(\w{7})s\.', r'\1.', url) - return uniqify(map(f, re.findall(self.LINK_PATTERN, self.html))) |