From 0c77909e532faa9a16337b902c12619486cf8b39 Mon Sep 17 00:00:00 2001 From: Stefano Date: Tue, 13 Aug 2013 14:33:18 +0200 Subject: Simplydebrid: cosmetics --- module/plugins/hoster/SimplydebridCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module') diff --git a/module/plugins/hoster/SimplydebridCom.py b/module/plugins/hoster/SimplydebridCom.py index 03396cc27..67cc39255 100644 --- a/module/plugins/hoster/SimplydebridCom.py +++ b/module/plugins/hoster/SimplydebridCom.py @@ -22,7 +22,7 @@ class SimplydebridCom(Hoster): def process(self, pyfile): if not self.account: - self.logError(_("Please enter your simply-debrid.com account or deactivate this plugin")) + self.logError(_("Please enter your %s account or deactivate this plugin") % "simply-debrid.com") self.fail("No simply-debrid.com account provided") self.logDebug("Old URL: %s" % pyfile.url) @@ -37,12 +37,12 @@ class SimplydebridCom(Hoster): new_url = new_url.replace("lumfile.com", "lumfile.se") if('fileparadox' in new_url): new_url = new_url.replace("http://", "https://") - + if re.match(self.__pattern__, new_url): new_url = new_url self.logDebug("New URL: %s" % new_url) - + if not re.match(self.__pattern__, new_url): page = self.load('http://simply-debrid.com/api.php', get={'dl': new_url}) #+'&u='+self.user+'&p='+self.account.getAccountData(self.user)['password']) if 'tiger Link' in page or 'Invalid Link' in page or ('API' in page and 'ERROR' in page): -- cgit v1.2.3