diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/hoster/HotfileCom.py | 2 | ||||
| -rw-r--r-- | module/plugins/hoster/NetloadIn.py | 7 | 
2 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/HotfileCom.py b/module/plugins/hoster/HotfileCom.py index a9853100c..748571840 100644 --- a/module/plugins/hoster/HotfileCom.py +++ b/module/plugins/hoster/HotfileCom.py @@ -60,7 +60,7 @@ class HotfileCom(Plugin):          return file_url      def get_file_name(self): -        file_name = re.search('Downloading\s<b>(.*?)</b>', self.html[0]).group(1) +        file_name = re.search(':</strong> (.+) <span>|</span>', self.html[0]).group(1)          return file_name      def file_exists(self): diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index 3c959d0d5..67753a7b7 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -17,7 +17,7 @@ class NetloadIn(Plugin):          props = {}          props['name'] = "NetloadIn"          props['type'] = "hoster" -        props['pattern'] = r"http://.*netload\.in/" +        props['pattern'] = r"http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)"          props['version'] = "0.1"          props['description'] = """Netload.in Download Plugin"""          props['author_name'] = ("spoob", "RaNaN") @@ -45,7 +45,6 @@ class NetloadIn(Plugin):              pyfile.status.filename = self.get_file_name()              if self.config['premium']: -                self.req.load("http://netload.in/index.php", None, { "txtuser" : self.config['username'], "txtpass" : self.config['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True)                  self.logger.info("Netload: Use Premium Account")                  pyfile.status.url = self.parent.url                  return True @@ -64,7 +63,7 @@ class NetloadIn(Plugin):      def download_api_data(self):          url = self.parent.url -        id_regex = re.compile("http://.*netload.in/datei(.*?)(?:\.htm|/)") +        id_regex = re.compile("http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)")          match = id_regex.search(url)          if match:              apiurl = "http://netload.in/share/fileinfos2.php" @@ -142,6 +141,8 @@ class NetloadIn(Plugin):          return False      def proceed(self, url, location): +        if self.config['premium']: +            self.req.load("http://netload.in/index.php", None, { "txtuser" : self.config['username'], "txtpass" : self.config['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True)          self.req.download(url, location, cookies=True)      def check_file(self, local_file):  | 
