summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/SimplydebridCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/SimplydebridCom.py')
-rw-r--r--pyload/plugins/hoster/SimplydebridCom.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/pyload/plugins/hoster/SimplydebridCom.py b/pyload/plugins/hoster/SimplydebridCom.py
index 7c6e6bfb3..f34f15ab2 100644
--- a/pyload/plugins/hoster/SimplydebridCom.py
+++ b/pyload/plugins/hoster/SimplydebridCom.py
@@ -6,24 +6,26 @@ from pyload.plugins.base.Hoster import Hoster
class SimplydebridCom(Hoster):
- __name__ = "SimplydebridCom"
- __type__ = "hoster"
+ __name__ = "SimplydebridCom"
+ __type__ = "hoster"
__version__ = "0.1"
- __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/sd.php/*'
+ __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/sd\.php/*'
__description__ = """Simply-debrid.com hoster plugin"""
- __authors__ = [("Kagenoshin", "kagenoshin@gmx.ch")]
+ __license__ = "GPLv3"
+ __authors__ = [("Kagenoshin", "kagenoshin@gmx.ch")]
def setup(self):
self.resumeDownload = self.multiDL = True
self.chunkLimit = 1
+
def process(self, pyfile):
if not self.account:
self.logError(_("Please enter your %s account or deactivate this plugin") % "simply-debrid.com")
- self.fail("No simply-debrid.com account provided")
+ self.fail(_("No simply-debrid.com account provided"))
self.logDebug("Old URL: %s" % pyfile.url)
@@ -46,7 +48,7 @@ class SimplydebridCom(Hoster):
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):
- self.fail('Unable to unrestrict link')
+ self.fail(_("Unable to unrestrict link"))
new_url = page
self.setWait(5)