summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YourfilesTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/YourfilesTo.py')
-rw-r--r--module/plugins/hoster/YourfilesTo.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/module/plugins/hoster/YourfilesTo.py b/module/plugins/hoster/YourfilesTo.py
index e0def108e..0f6ca49df 100644
--- a/module/plugins/hoster/YourfilesTo.py
+++ b/module/plugins/hoster/YourfilesTo.py
@@ -1,16 +1,14 @@
# -*- coding: utf-8 -*-
-import re
+import reimport urllib
-from urllib import unquote
-
-from module.plugins.Hoster import Hoster
+from module.plugins.internal.Hoster import Hoster
class YourfilesTo(Hoster):
__name__ = "YourfilesTo"
__type__ = "hoster"
- __version__ = "0.22"
+ __version__ = "0.23"
__pattern__ = r'http://(?:www\.)?yourfiles\.(to|biz)/\?d=\w+'
@@ -62,7 +60,7 @@ class YourfilesTo(Hoster):
url = re.search(r"var bla = '(.*?)';", self.html)
if url:
url = url.group(1)
- url = unquote(url.replace("http://http:/http://", "http://").replace("dumdidum", ""))
+ url = urllib.unquote(url.replace("http://http:/http://", "http://").replace("dumdidum", ""))
return url
else:
self.error(_("Absolute filepath not found"))
@@ -81,7 +79,7 @@ class YourfilesTo(Hoster):
if not self.html:
self.download_html()
- if re.search(r"HTTP Status 404", self.html) is not None:
+ if re.search(r"HTTP Status 404", self.html):
return False
else:
return True