diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-19 00:36:50 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-19 00:36:50 +0200 |
commit | 876673902e5ea8d5336e144cad18d23fda613e94 (patch) | |
tree | 5b6ba792882eb110e822b2e64dda2b6a4f3722e9 /module/Api.py | |
parent | improved hook loader (diff) | |
download | pyload-876673902e5ea8d5336e144cad18d23fda613e94.tar.xz |
cleanup
Diffstat (limited to 'module/Api.py')
-rw-r--r-- | module/Api.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/module/Api.py b/module/Api.py index 648174a1f..be72ee359 100644 --- a/module/Api.py +++ b/module/Api.py @@ -24,10 +24,11 @@ from time import time from remote.thriftbackend.thriftgen.pyload.ttypes import * from remote.thriftbackend.thriftgen.pyload.Pyload import Iface -from module.PyFile import PyFile -from module.database.UserDatabase import ROLE -from module.utils import freeSpace, compare_time -from module.common.packagetools import parseNames +from PyFile import PyFile +from database.UserDatabase import ROLE +from utils import freeSpace, compare_time +from common.packagetools import parseNames +from network.RequestFactory import getURL class Api(Iface): @@ -265,8 +266,13 @@ class Api(Iface): return pid def parseURLs(self, html): - #TODO implement - pass + html = getURL(html) + + # TODO parse + urls = [] + + return self.checkURLs(urls) + def checkURLs(self, urls): data = self.core.pluginManager.parseUrls(urls) @@ -318,7 +324,6 @@ class Api(Iface): return OnlineCheck(rid, result) - def generatePackages(self, links): """ Parses links, generates packages names only from urls |