From 6d7dd4af275126f07fda135d1fb897d8494efa7c Mon Sep 17 00:00:00 2001 From: Jeix Date: Wed, 13 Apr 2011 10:55:06 +0200 Subject: shragle fix --- module/plugins/hoster/ShragleCom.py | 2 +- module/plugins/hoster/Xdcc.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster') 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" + file_name_pattern = r'You want to download \xc2\xbb(.*?)\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"): -- cgit v1.2.3