summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hadrien Theveneau <theveneau@gmail.com> 2015-10-09 04:12:56 +0200
committerGravatar Hadrien Theveneau <theveneau@gmail.com> 2015-10-09 04:45:34 +0200
commit381d82615c7dd9ca1c803669fa28643b8855aa5f (patch)
tree7d1d056e7bc6d3358cc06a37ff7aa191500a1497
parentFix https://github.com/pyload/pyload/issues/1962 (and many other tickets) (diff)
downloadpyload-381d82615c7dd9ca1c803669fa28643b8855aa5f.tar.xz
Correction of bug KeyError: 'ID' in OneFichierCom.py.
-rw-r--r--module/plugins/hoster/OneFichierCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index e7f2602a0..9ed90828c 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -99,8 +99,8 @@ class OneFichierCom(SimpleHoster):
def handle_free(self, pyfile):
self.check_errors()
- id = self.info['pattern']['ID1'] or self.info['pattern']['ID2']
- url, inputs = self.parse_html_form('action="https://1fichier.com/\?%s' % id)
+ id = self.info['pattern']['N'] # Check me : should this one be the file name or the onefichier name ???
+ url, inputs = self.parse_html_form('action="https://1fichier.com/\?[a-zA-Z0-9]+')
if not url:
return