From 4b60d0a006b5f4de08ed05c608df2153b0a5aaf8 Mon Sep 17 00:00:00 2001 From: Ludovic Lehmann Date: Sun, 29 Mar 2015 23:36:24 +0200 Subject: fix OneFichierCom premium issue : global name 'link' is not defined --- module/plugins/hoster/OneFichierCom.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index e7d7675e0..3cbd47838 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class OneFichierCom(SimpleHoster): __name__ = "OneFichierCom" __type__ = "hoster" - __version__ = "0.80" + __version__ = "0.81" __pattern__ = r'https?://(?:www\.)?(?:(?P\w+)\.)?(?P1fichier\.com|alterupload\.com|cjoint\.net|d(es)?fichiers\.com|dl4free\.com|megadl\.fr|mesfichiers\.org|piecejointe\.net|pjointe\.com|tenvoi\.com)(?:/\?(?P\w+))?' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -22,7 +22,8 @@ class OneFichierCom(SimpleHoster): ("imclem", None), ("stickell", "l.stickell@yahoo.it"), ("Elrick69", "elrick69[AT]rocketmail[DOT]com"), - ("Walter Purcaro", "vuolter@gmail.com")] + ("Walter Purcaro", "vuolter@gmail.com"), + ("Ludovic Lehmann", "ludo.lehmann@gmail.com")] NAME_PATTERN = r'>FileName :\s*(?P.+?)<' @@ -46,7 +47,7 @@ class OneFichierCom(SimpleHoster): self.link = self.directLink(pyfile.url, self.resumeDownload) if self.link: - remote = urllib2.urlopen(link) + remote = urllib2.urlopen(self.link) name = remote.info()['Content-Disposition'].split(';') pyfile.name = name[1].split('filename=')[1][1:] -- cgit v1.2.3 From 0bc53014205074fd07cee1a17e38588c8095db07 Mon Sep 17 00:00:00 2001 From: ludoviclehmann Date: Sun, 29 Mar 2015 23:42:10 +0200 Subject: Fix indentation problem in OneFichierCom.py --- module/plugins/hoster/OneFichierCom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index 3cbd47838..e585b2d59 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -23,7 +23,7 @@ class OneFichierCom(SimpleHoster): ("stickell", "l.stickell@yahoo.it"), ("Elrick69", "elrick69[AT]rocketmail[DOT]com"), ("Walter Purcaro", "vuolter@gmail.com"), - ("Ludovic Lehmann", "ludo.lehmann@gmail.com")] + ("Ludovic Lehmann", "ludo.lehmann@gmail.com")] NAME_PATTERN = r'>FileName :\s*(?P.+?)<' -- cgit v1.2.3