Example #1
0
    def is_time_reconnect(self):
        """
        Checks if pyload will try to make a reconnect

        :return: bool
        """
        start = self.pyload.config.get("reconnect", "start").split(":")
        end = self.pyload.config.get("reconnect", "end").split(":")
        return compare_time(start, end) and self.pyload.config.get("reconnect", "activated")
Example #2
0
    def is_time_download(self):
        """
        Checks if pyload will start new downloads according to time in config.

        :return: bool
        """
        start = self.pyload.config.get("downloadTime", "start").split(":")
        end = self.pyload.config.get("downloadTime", "end").split(":")
        return compare_time(start, end)