summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/OneKhDe.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/OneKhDe.py')
-rw-r--r--module/plugins/crypter/OneKhDe.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/crypter/OneKhDe.py b/module/plugins/crypter/OneKhDe.py
index 4dcb416f5..341359c5a 100644
--- a/module/plugins/crypter/OneKhDe.py
+++ b/module/plugins/crypter/OneKhDe.py
@@ -2,15 +2,15 @@
import re
-from module.unescape import unescape
-
-from module.plugins.Crypter import Crypter
+from module.plugins.internal.Crypter import Crypter
+from module.utils import html_unescape
class OneKhDe(Crypter):
__name__ = "OneKhDe"
__type__ = "crypter"
- __version__ = "0.11"
+ __version__ = "0.13"
+ __status__ = "testing"
__pattern__ = r'http://(?:www\.)?1kh\.de/f/'
__config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True),
@@ -27,7 +27,8 @@ class OneKhDe(Crypter):
def file_exists(self):
- """ returns True or False
+ """
+ Returns True or False
"""
return True
@@ -37,6 +38,6 @@ class OneKhDe(Crypter):
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 = unescape(
+ new_link = html_unescape(
re.search("width=\"100%\" src=\"(.*)\"></iframe>", self.load("http://1kh.de/l/" + id)).group(1))
self.urls.append(new_link)