diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-03-05 21:10:06 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-03-05 21:10:06 +0100 |
commit | ea3554b37644e4f72b98ad9fb72b781ef6b4bc19 (patch) | |
tree | fcdf7c4f5c42a4d748f61b23560ccd7857502b2c /module | |
parent | [UploadingCom] fix #1257 (diff) | |
download | pyload-ea3554b37644e4f72b98ad9fb72b781ef6b4bc19.tar.xz |
[OneFichierCom] fix #2369
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index b7dc3a40a..51caaa657 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -4,12 +4,13 @@ import re from module.network.RequestFactory import getURL as get_url from module.plugins.internal.SimpleHoster import SimpleHoster +from module.plugins.internal.misc import format_exc class OneFichierCom(SimpleHoster): __name__ = "OneFichierCom" __type__ = "hoster" - __version__ = "0.99" + __version__ = "1.00" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(?:\w+\.)?(?P<HOST>1fichier\.com|alterupload\.com|cjoint\.net|d(?:es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?\w+)?' @@ -57,6 +58,7 @@ class OneFichierCom(SimpleHoster): headers = dict((k.lower(), v) for k,v in re.findall(r'(?P<name>.+?): (?P<value>.+?)\r?\n', get_url(redirect, just_header=True))) if 'location' in headers and headers['location']: redirect = headers['location'] + else: if 'content-type' in headers and headers['content-type'] == "application/octet-stream": if "filename=" in headers.get('content-disposition'): @@ -75,8 +77,10 @@ class OneFichierCom(SimpleHoster): break except Exception, e: + print format_exc() info = {'status' : 8, 'error' : e.message} + break else: info = {'status' : 8, |