summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YourfilesTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-01 19:35:59 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-08-01 19:35:59 +0200
commitba916633f2bedb04c7358000b91aed69f52e8e43 (patch)
tree5b0e323417bf2ac9f3d88b4234c7e8da98d30f5c /module/plugins/hoster/YourfilesTo.py
parent[DepositfilesCom] Fix missing declaration (thx hmlinaric) (diff)
downloadpyload-ba916633f2bedb04c7358000b91aed69f52e8e43.tar.xz
Remove trailing whitespaces + remove license headers + import urllib methods directly + sort and fix key attributes + use save_join instead join + sort some import declarations + other minor code cosmetics
Diffstat (limited to 'module/plugins/hoster/YourfilesTo.py')
-rw-r--r--module/plugins/hoster/YourfilesTo.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/hoster/YourfilesTo.py b/module/plugins/hoster/YourfilesTo.py
index 3fb517eef..bdb91819f 100644
--- a/module/plugins/hoster/YourfilesTo.py
+++ b/module/plugins/hoster/YourfilesTo.py
@@ -1,19 +1,24 @@
# -*- coding: utf-8 -*-
import re
-import urllib
+
+from urllib import unquote
+
from module.plugins.Hoster import Hoster
class YourfilesTo(Hoster):
__name__ = "YourfilesTo"
__type__ = "hoster"
- __pattern__ = r'(http://)?(?:www\.)?yourfiles\.(to|biz)/\?d=[a-zA-Z0-9]+'
__version__ = "0.21"
+
+ __pattern__ = r'(http://)?(?:www\.)?yourfiles\.(to|biz)/\?d=[a-zA-Z0-9]+'
+
__description__ = """Youfiles.to hoster plugin"""
__author_name__ = ("jeix", "skydancer")
__author_mail__ = ("jeix@hasnomail.de", "skydancer@hasnomail.de")
+
def process(self, pyfile):
self.pyfile = pyfile
self.prepare()
@@ -53,7 +58,7 @@ class YourfilesTo(Hoster):
url = re.search(r"var bla = '(.*?)';", self.html)
if url:
url = url.group(1)
- url = urllib.unquote(url.replace("http://http:/http://", "http://").replace("dumdidum", ""))
+ url = unquote(url.replace("http://http:/http://", "http://").replace("dumdidum", ""))
return url
else:
self.fail("absolute filepath could not be found. offline? ")