MCPcopy
hub / github.com/pyload/pyload / checkURLs

Method checkURLs

module/Api.py:358–373  ·  view source on GitHub ↗

Gets urls and returns pluginname mapped to list of matches urls. :param urls: :return: {plugin: urls}

(self, urls)

Source from the content-addressed store, hash-verified

356
357 @permission(PERMS.ADD)
358 def checkURLs(self, urls):
359 """ Gets urls and returns pluginname mapped to list of matches urls.
360
361 :param urls:
362 :return: {plugin: urls}
363 """
364 data = self.core.pluginManager.parseUrls(urls)
365 plugins = {}
366
367 for url, plugin in data:
368 if plugin in plugins:
369 plugins[plugin].append(url)
370 else:
371 plugins[plugin] = [url]
372
373 return plugins
374
375 @permission(PERMS.ADD)
376 def checkOnlineStatus(self, urls):

Callers 1

parseURLsMethod · 0.95

Calls 2

parseUrlsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected