From 381d82615c7dd9ca1c803669fa28643b8855aa5f Mon Sep 17 00:00:00 2001 From: Hadrien Theveneau Date: Fri, 9 Oct 2015 04:12:56 +0200 Subject: Correction of bug KeyError: 'ID' in OneFichierCom.py. --- module/plugins/hoster/OneFichierCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/OneFichierCom.py') 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 -- cgit v1.2.3