diff options
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 |