summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DownloadScheduler.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:23:37 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:13:41 +0200
commit48c0c42fd6faffc56432d5f037cd575979f180cc (patch)
treeb8a57137e10e201f77328dca45e2951ece123e53 /module/plugins/hooks/DownloadScheduler.py
parent[l18n] Improved few source strings (diff)
downloadpyload-48c0c42fd6faffc56432d5f037cd575979f180cc.tar.xz
Removed all @author flags + key attributes cleanup for internal & hooks plugins
Diffstat (limited to 'module/plugins/hooks/DownloadScheduler.py')
-rw-r--r--module/plugins/hooks/DownloadScheduler.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index 41a20e5d1..070c0634e 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -12,7 +12,6 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
- @author: zoidberg
Original idea by new.cze
"""
@@ -25,14 +24,18 @@ from module.plugins.Hook import Hook
class DownloadScheduler(Hook):
__name__ = "DownloadScheduler"
__version__ = "0.21"
- __description__ = """Download Scheduler"""
+ __type__ = "hook"
+
__config__ = [("activated", "bool", "Activated", False),
("timetable", "str", "List time periods as hh:mm full or number(kB/s)",
"0:00 full, 7:00 250, 10:00 0, 17:00 150"),
("abort", "bool", "Abort active downloads when start period with speed 0", False)]
+
+ __description__ = """Download Scheduler"""
__author_name__ = ("zoidberg", "stickell")
__author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
+
def setup(self):
self.cb = None # callback to scheduler job; will be by removed hookmanager when hook unloaded