From 6f87a713970d6a18c0a3e622286488ec9e3b5494 Mon Sep 17 00:00:00 2001
From: stickell <l.stickell@yahoo.it>
Date: Thu, 11 Sep 2014 15:52:16 +0200
Subject: [MultiDebrid] renaming files to MyfastlineCom

---
 module/plugins/accounts/MultiDebridCom.py | 32 -----------------------
 module/plugins/accounts/MyfastfileCom.py  | 32 +++++++++++++++++++++++
 module/plugins/hooks/MultiDebridCom.py    | 26 -------------------
 module/plugins/hooks/MyfastfileCom.py     | 26 +++++++++++++++++++
 module/plugins/hoster/MultiDebridCom.py   | 42 -------------------------------
 module/plugins/hoster/MyfastfileCom.py    | 42 +++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+), 100 deletions(-)
 delete mode 100644 module/plugins/accounts/MultiDebridCom.py
 create mode 100644 module/plugins/accounts/MyfastfileCom.py
 delete mode 100644 module/plugins/hooks/MultiDebridCom.py
 create mode 100644 module/plugins/hooks/MyfastfileCom.py
 delete mode 100644 module/plugins/hoster/MultiDebridCom.py
 create mode 100644 module/plugins/hoster/MyfastfileCom.py

(limited to 'module/plugins')

diff --git a/module/plugins/accounts/MultiDebridCom.py b/module/plugins/accounts/MultiDebridCom.py
deleted file mode 100644
index 2a2d6d065..000000000
--- a/module/plugins/accounts/MultiDebridCom.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from time import time
-
-from module.plugins.Account import Account
-from module.common.json_layer import json_loads
-
-
-class MultiDebridCom(Account):
-    __name__ = "MultiDebridCom"
-    __type__ = "account"
-    __version__ = "0.02"
-    __description__ = """Myfastfile.com account plugin"""
-    __author_name__ = "stickell"
-    __author_mail__ = "l.stickell@yahoo.it"
-
-    def loadAccountInfo(self, user, req):
-        if 'days_left' in self.json_data:
-            validuntil = int(time() + self.json_data['days_left'] * 24 * 60 * 60)
-            return {"premium": True, "validuntil": validuntil, "trafficleft": -1}
-        else:
-            self.logError('Unable to get account information')
-
-    def login(self, user, data, req):
-        # Password to use is the API-Password written in http://myfastfile.com/myaccount
-        html = req.load("http://myfastfile.com/api.php",
-                             get={"user": user, "pass": data['password']})
-        self.logDebug('JSON data: ' + html)
-        self.json_data = json_loads(html)
-        if self.json_data['status'] != 'ok':
-            self.logError('Invalid login. The password to use is the API-Password you find in your "My Account" page')
-            self.wrongPassword()
diff --git a/module/plugins/accounts/MyfastfileCom.py b/module/plugins/accounts/MyfastfileCom.py
new file mode 100644
index 000000000..8db9c9ade
--- /dev/null
+++ b/module/plugins/accounts/MyfastfileCom.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+
+from time import time
+
+from module.plugins.Account import Account
+from module.common.json_layer import json_loads
+
+
+class MyfastfileCom(Account):
+    __name__ = "MyfastfileCom"
+    __type__ = "account"
+    __version__ = "0.02"
+    __description__ = """Myfastfile.com account plugin"""
+    __author_name__ = "stickell"
+    __author_mail__ = "l.stickell@yahoo.it"
+
+    def loadAccountInfo(self, user, req):
+        if 'days_left' in self.json_data:
+            validuntil = int(time() + self.json_data['days_left'] * 24 * 60 * 60)
+            return {"premium": True, "validuntil": validuntil, "trafficleft": -1}
+        else:
+            self.logError('Unable to get account information')
+
+    def login(self, user, data, req):
+        # Password to use is the API-Password written in http://myfastfile.com/myaccount
+        html = req.load("http://myfastfile.com/api.php",
+                             get={"user": user, "pass": data['password']})
+        self.logDebug('JSON data: ' + html)
+        self.json_data = json_loads(html)
+        if self.json_data['status'] != 'ok':
+            self.logError('Invalid login. The password to use is the API-Password you find in your "My Account" page')
+            self.wrongPassword()
diff --git a/module/plugins/hooks/MultiDebridCom.py b/module/plugins/hooks/MultiDebridCom.py
deleted file mode 100644
index e27ec8040..000000000
--- a/module/plugins/hooks/MultiDebridCom.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from module.common.json_layer import json_loads
-from module.network.RequestFactory import getURL
-from module.plugins.internal.MultiHoster import MultiHoster
-
-
-class MultiDebridCom(MultiHoster):
-    __name__ = "MultiDebridCom"
-    __type__ = "hook"
-    __version__ = "0.02"
-    __config__ = [("activated", "bool", "Activated", False),
-                  ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
-                  ("hosterList", "str", "Hoster list (comma separated)", ""),
-                  ("unloadFailing", "bool", "Revert to standard download if download fails", False),
-                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]
-    __description__ = """Myfastfile.com hook plugin"""
-    __author_name__ = "stickell"
-    __author_mail__ = "l.stickell@yahoo.it"
-
-    def getHoster(self):
-        json_data = getURL('http://myfastfile.com/api.php?hosts', decode=True)
-        self.logDebug('JSON data: ' + json_data)
-        json_data = json_loads(json_data)
-
-        return json_data['hosts']
diff --git a/module/plugins/hooks/MyfastfileCom.py b/module/plugins/hooks/MyfastfileCom.py
new file mode 100644
index 000000000..bbf665b08
--- /dev/null
+++ b/module/plugins/hooks/MyfastfileCom.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+
+from module.common.json_layer import json_loads
+from module.network.RequestFactory import getURL
+from module.plugins.internal.MultiHoster import MultiHoster
+
+
+class MyfastfileCom(MultiHoster):
+    __name__ = "MyfastfileCom"
+    __type__ = "hook"
+    __version__ = "0.02"
+    __config__ = [("activated", "bool", "Activated", False),
+                  ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"),
+                  ("hosterList", "str", "Hoster list (comma separated)", ""),
+                  ("unloadFailing", "bool", "Revert to standard download if download fails", False),
+                  ("interval", "int", "Reload interval in hours (0 to disable)", 24)]
+    __description__ = """Myfastfile.com hook plugin"""
+    __author_name__ = "stickell"
+    __author_mail__ = "l.stickell@yahoo.it"
+
+    def getHoster(self):
+        json_data = getURL('http://myfastfile.com/api.php?hosts', decode=True)
+        self.logDebug('JSON data: ' + json_data)
+        json_data = json_loads(json_data)
+
+        return json_data['hosts']
diff --git a/module/plugins/hoster/MultiDebridCom.py b/module/plugins/hoster/MultiDebridCom.py
deleted file mode 100644
index bae864806..000000000
--- a/module/plugins/hoster/MultiDebridCom.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from module.common.json_layer import json_loads
-from module.plugins.Hoster import Hoster
-
-
-class MultiDebridCom(Hoster):
-    __name__ = "MultiDebridCom"
-    __type__ = "hoster"
-    __version__ = "0.04"
-    __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/'
-    __description__ = """Myfastfile.com hoster plugin"""
-    __author_name__ = "stickell"
-    __author_mail__ = "l.stickell@yahoo.it"
-
-    def setup(self):
-        self.chunkLimit = -1
-        self.resumeDownload = True
-
-    def process(self, pyfile):
-        if re.match(self.__pattern__, pyfile.url):
-            new_url = pyfile.url
-        elif not self.account:
-            self.logError(_("Please enter your %s account or deactivate this plugin") % "Myfastfile.com")
-            self.fail("No Myfastfile.com account provided")
-        else:
-            self.logDebug("Original URL: %s" % pyfile.url)
-            page = self.req.load('http://myfastfile.com/api.php',
-                                 get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'],
-                                      'link': pyfile.url})
-            self.logDebug("JSON data: " + page)
-            page = json_loads(page)
-            if page['status'] != 'ok':
-                self.fail('Unable to unrestrict link')
-            new_url = page['link']
-
-        if new_url != pyfile.url:
-            self.logDebug("Unrestricted URL: " + new_url)
-
-        self.download(new_url, disposition=True)
diff --git a/module/plugins/hoster/MyfastfileCom.py b/module/plugins/hoster/MyfastfileCom.py
new file mode 100644
index 000000000..7a5c2f515
--- /dev/null
+++ b/module/plugins/hoster/MyfastfileCom.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+from module.common.json_layer import json_loads
+from module.plugins.Hoster import Hoster
+
+
+class MyfastfileCom(Hoster):
+    __name__ = "MyfastfileCom"
+    __type__ = "hoster"
+    __version__ = "0.04"
+    __pattern__ = r'http://(?:www\.)?\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/'
+    __description__ = """Myfastfile.com hoster plugin"""
+    __author_name__ = "stickell"
+    __author_mail__ = "l.stickell@yahoo.it"
+
+    def setup(self):
+        self.chunkLimit = -1
+        self.resumeDownload = True
+
+    def process(self, pyfile):
+        if re.match(self.__pattern__, pyfile.url):
+            new_url = pyfile.url
+        elif not self.account:
+            self.logError(_("Please enter your %s account or deactivate this plugin") % "Myfastfile.com")
+            self.fail("No Myfastfile.com account provided")
+        else:
+            self.logDebug("Original URL: %s" % pyfile.url)
+            page = self.req.load('http://myfastfile.com/api.php',
+                                 get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'],
+                                      'link': pyfile.url})
+            self.logDebug("JSON data: " + page)
+            page = json_loads(page)
+            if page['status'] != 'ok':
+                self.fail('Unable to unrestrict link')
+            new_url = page['link']
+
+        if new_url != pyfile.url:
+            self.logDebug("Unrestricted URL: " + new_url)
+
+        self.download(new_url, disposition=True)
-- 
cgit v1.2.3