MCPcopy
hub / github.com/pyload/pyload / isTimeDownload

Method isTimeDownload

module/Api.py:272–279  ·  view source on GitHub ↗

Checks if pyload will start new downloads according to time in config. :return: bool

(self)

Source from the content-addressed store, hash-verified

270
271 @permission(PERMS.STATUS)
272 def isTimeDownload(self):
273 """Checks if pyload will start new downloads according to time in config.
274
275 :return: bool
276 """
277 start = self.core.config['downloadTime']['start'].split(":")
278 end = self.core.config['downloadTime']['end'].split(":")
279 return compare_time(start, end)
280
281 @permission(PERMS.STATUS)
282 def isTimeReconnect(self):

Callers 3

statusServerMethod · 0.95
startMethod · 0.45
assignJobMethod · 0.45

Calls 2

compare_timeFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected