summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NetloadIn.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-10 17:27:42 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-10 17:27:42 +0100
commitba4b5586168a8c1111ca071ca4acca1739bdba84 (patch)
tree08148a62f461099dbd19d81e0b12769d9849e262 /module/plugins/hoster/NetloadIn.py
parentlittle fix (diff)
downloadpyload-ba4b5586168a8c1111ca071ca4acca1739bdba84.tar.xz
closed #257, files.mail.ru premium
Diffstat (limited to 'module/plugins/hoster/NetloadIn.py')
-rw-r--r--module/plugins/hoster/NetloadIn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index b99694774..afc679a9d 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -16,7 +16,7 @@ def getInfo(urls):
apiurl = "http://api.netload.in/info.php?auth=Zf9SnQh9WiReEsb18akjvQGqT0I830e8&bz=1&md5=1&file_id="
- id_regex = re.compile("http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)")
+ id_regex = re.compile(NetloadIn.__pattern__)
urls_per_query = 80
for chunk in chunks(urls, urls_per_query):
@@ -92,7 +92,7 @@ class NetloadIn(Hoster):
def download_api_data(self, n=0):
url = self.url
- id_regex = re.compile("http://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)")
+ id_regex = re.compile(self.__pattern__)
match = id_regex.search(url)
if not match:
@@ -108,7 +108,7 @@ class NetloadIn(Hoster):
self.log.debug("Netload: APIDATA: "+src)
self.api_data = {}
- if src and src != "unknown file_data":
+ if src and src not in ("unknown file_data", "unknown_server_data"):
lines = src.split(";")
self.api_data["exists"] = True
self.api_data["fileid"] = lines[0]