mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Updated Scheduler plugin so that it works with current trunk.
This commit is contained in:
parent
1e519447ed
commit
20c22477f4
2 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
plugin_name = "Scheduler" # The name of the plugin
|
||||
plugin_author = "Lazka - updated by markybob" # The author's Name
|
||||
plugin_version = "0.5.2" # The plugin's version number
|
||||
plugin_version = "0.5.6" # The plugin's version number
|
||||
plugin_description = "Scheduler" # A description of the plugin
|
||||
|
||||
def deluge_init(deluge_path):
|
||||
|
|
|
@ -31,7 +31,6 @@ class plugin_Scheduler:
|
|||
|
||||
def update(self):
|
||||
time_now = time.localtime(time.time())
|
||||
|
||||
if self.status is not self.button_state[time_now[3]][time_now[6]]:
|
||||
self.status = self.button_state[time_now[3]][time_now[6]]
|
||||
|
||||
|
@ -55,14 +54,14 @@ class plugin_Scheduler:
|
|||
self.core.apply_queue()
|
||||
|
||||
def limit(self):
|
||||
self.config.set("max_download_rate", float(self.dllimit))
|
||||
self.config.set("max_upload_rate", float(self.ullimit))
|
||||
self.config.set("max_download_speed", float(self.dllimit))
|
||||
self.config.set("max_upload_speed", float(self.ullimit))
|
||||
|
||||
def unlimit(self):
|
||||
self.interface.apply_prefs()
|
||||
|
||||
#Configuration dialog
|
||||
def configure(self):
|
||||
def configure(self, window):
|
||||
global scheduler_select
|
||||
|
||||
self.button_state_temp = copy.deepcopy(self.button_state)
|
||||
|
|
Loading…
Add table
Reference in a new issue