summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2011-04-13 10:55:06 +0200
committerGravatar Jeix <devnull@localhost> 2011-04-13 10:55:06 +0200
commit6d7dd4af275126f07fda135d1fb897d8494efa7c (patch)
treecf5dc4c35ebc9568340c3c9d28e4ff5fe7a9956d /module/plugins/hoster
parentinformation page for webif (diff)
downloadpyload-6d7dd4af275126f07fda135d1fb897d8494efa7c.tar.xz
shragle fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/ShragleCom.py2
-rw-r--r--module/plugins/hoster/Xdcc.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/ShragleCom.py b/module/plugins/hoster/ShragleCom.py
index f45c94e96..c1cef9f3e 100644
--- a/module/plugins/hoster/ShragleCom.py
+++ b/module/plugins/hoster/ShragleCom.py
@@ -58,7 +58,7 @@ class ShragleCom(Hoster):
if self.html is None:
self.download_html()
- file_name_pattern = r"<\/div><h2>(.+)<\/h2"
+ file_name_pattern = r'You want to download \xc2\xbb<strong>(.*?)</strong>\xc2\xab'
return re.search(file_name_pattern, self.html).group(1)
def file_exists(self):
diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py
index 5dc1aafb8..7c81ccbe0 100644
--- a/module/plugins/hoster/Xdcc.py
+++ b/module/plugins/hoster/Xdcc.py
@@ -58,7 +58,8 @@ class Xdcc(Hoster):
self.pyfile = pyfile
for i in range(0,3):
try:
- self.doDownload(pyfile.url)
+ nmn = self.doDownload(pyfile.url)
+ self.log.debug("%s: Download of %s finished." % (self.__name__, nmn))
return
except socket.error, e:
if hasattr(e, "errno"):