diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-08 10:01:24 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-08 10:01:24 +0200 |
commit | 3af8bfcf685f82de097ef6b110dffa77fd529eaf (patch) | |
tree | 4ececc92c874aaa3522b9c3fa1d45b995074c2e1 /module/plugins/hoster | |
parent | Fix https://github.com/pyload/pyload/issues/1459 (diff) | |
download | pyload-3af8bfcf685f82de097ef6b110dffa77fd529eaf.tar.xz |
[SimpleHoster] Improve logging and file checking
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/SolidfilesCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/XFileSharingPro.py | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hoster/SolidfilesCom.py b/module/plugins/hoster/SolidfilesCom.py index d359577d6..184329a40 100644 --- a/module/plugins/hoster/SolidfilesCom.py +++ b/module/plugins/hoster/SolidfilesCom.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # Test links: -# http://www.solidfiles.com/d/609cdb4b1b +# http://www.solidfiles.com/d/609cdb4b1b from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo diff --git a/module/plugins/hoster/XFileSharingPro.py b/module/plugins/hoster/XFileSharingPro.py index 169fbc8d3..c62a42779 100644 --- a/module/plugins/hoster/XFileSharingPro.py +++ b/module/plugins/hoster/XFileSharingPro.py @@ -8,7 +8,7 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo class XFileSharingPro(XFSHoster): __name__ = "XFileSharingPro" __type__ = "hoster" - __version__ = "0.46" + __version__ = "0.47" __pattern__ = r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w\-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:embed-)?\w{12}(?:\W|$)' @@ -21,9 +21,7 @@ class XFileSharingPro(XFSHoster): def _log(self, type, args): - msg = " | ".join(str(a).strip() for a in args if a) - logger = getattr(self.log, type) - logger("%s: %s: %s" % (self.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) + return super(XFileSharingPro, self)._log(type, [self.HOSTER_NAME] + args) def init(self): |