-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1 addition
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# Speed limit extension script for NZBGet. | ||
# | ||
# Copyright (C) 2021 Andrey Prygunkov <[email protected]> | ||
# Copyright (C) 2024 Denis <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as published by | ||
|
@@ -30,13 +31,6 @@ | |
SCRIPT_SUCCESS = 93 | ||
SCRIPT_ERROR = 94 | ||
|
||
# Check if the script is called from nzbget 24 or later | ||
nzbget_version = float(os.environ.get("NZBOP_Version", "1")[0:4]) | ||
if nzbget_version < 24: | ||
print("*** NZBGet extension script ***") | ||
print("This script is supposed to be called from nzbget (24 or later).") | ||
sys.exit(SCRIPT_ERROR) | ||
|
||
# Check if all script options are available | ||
required_options = ("NZBPO_Interval", "NZBPO_Interval") | ||
for optname in required_options: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters