summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/crypter/OneKhDe.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 15:56:57 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-13 15:56:57 +0100
commitacc46fc3497a66a427b795b4a22c6e71d69185a1 (patch)
tree2d315b838a76435fc456b972c99c28d1732b2f70 /pyload/plugins/crypter/OneKhDe.py
parentCode fixes (diff)
downloadpyload-acc46fc3497a66a427b795b4a22c6e71d69185a1.tar.xz
Update
Diffstat (limited to 'pyload/plugins/crypter/OneKhDe.py')
-rw-r--r--pyload/plugins/crypter/OneKhDe.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/pyload/plugins/crypter/OneKhDe.py b/pyload/plugins/crypter/OneKhDe.py
deleted file mode 100644
index 9966df35b..000000000
--- a/pyload/plugins/crypter/OneKhDe.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from pyload.utils import html_unescape
-from pyload.plugins.Crypter import Crypter
-
-
-class OneKhDe(Crypter):
- __name = "OneKhDe"
- __type = "crypter"
- __version = "0.10"
-
- __pattern = r'http://(?:www\.)?1kh\.de/f/'
- __config = [("use_subfolder", "bool", "Save package to subfolder", True),
- ("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
-
- __description = """1kh.de decrypter plugin"""
- __license = "GPLv3"
- __authors = [("spoob", "spoob@pyload.org")]
-
-
- def __init__(self, parent):
- Crypter.__init__(self, parent)
- self.parent = parent
-
-
- def file_exists(self):
- """ returns True or False
- """
- return True
-
-
- def proceed(self, url, location):
- url = self.parent.url
- self.html = self.load(url)
- link_ids = re.findall(r"<a id=\"DownloadLink_(\d*)\" href=\"http://1kh.de/", self.html)
- for id in link_ids:
- new_link = html_unescape(re.search("width=\"100%\" src=\"(.*)\"></iframe>", self.load("http://1kh.de/l/" + id)).group(1))
- self.urls.append(new_link)