diff options
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/ShragleCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/Xdcc.py | 3 |
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"):
|