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 83ab89110..d0316d3ac 100644
--- a/module/plugins/hoster/YourfilesTo.py
+++ b/module/plugins/hoster/YourfilesTo.py
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
-import re
-
-from urllib import unquote
+import reimport urllib
from module.plugins.Hoster import Hoster
@@ -10,9 +8,9 @@ from module.plugins.Hoster import Hoster
class YourfilesTo(Hoster):
__name__ = "YourfilesTo"
__type__ = "hoster"
- __version__ = "0.21"
+ __version__ = "0.22"
- __pattern__ = r'(http://)?(?:www\.)?yourfiles\.(to|biz)/\?d=\w+'
+ __pattern__ = r'http://(?:www\.)?yourfiles\.(to|biz)/\?d=\w+'
__description__ = """Youfiles.to hoster plugin"""
__license__ = "GPLv3"
@@ -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