Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed May 15, 2024
1 parent 53c9b58 commit e60f0b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ programming in Python.

- Remove files from job before and during download (Requires Base URL) (task option)
- Edit Global Options while the bot is running from bot settings (global option)
- Servers menu to edit/add/remove usenet servers

## TG Upload/Download

Expand Down Expand Up @@ -331,21 +332,7 @@ quotes, even if it's `Int`, `Bool` or `List`.
- `USENET_SERVERS`: list of dictionaries, you can add as much as you want and there is a button for servers in sabnzbd settings to edit current servers and add new servers.

***[{'name': 'main', 'host': '', 'port': 5126, 'timeout': 60, 'username': '', 'password': '', 'connections': 8, 'ssl': 1, 'ssl_verify': 2, 'ssl_ciphers': '', 'enable': 1, 'required': 0, 'optional': 0, 'retention': 0, 'send_group': 0, 'priority': 0}]***

- `name` for server name, add whatever you want. `Str`
- `host` is usenet provider to grant access. `Str`
- `port` for host, add what is best for your server or leave it empty. `Int`
- `username` account username. `Str`
- `password` account password. `Str`
- `connections` number of connections by default is 8. `Int`
- `ssl` ssl verification, 0 (disabled) 1 (enabled) default. `Int`
- `ssl_verify` certificate verification, 0 (disabled) 1 (minimal) 2 (strict). `Int`
- `ssl_ciphers` increase performance by forcing a lower SSL encryption strength. Read the Wiki Help on [this](https://sabnzbd.org/wiki/advanced/ssl-ciphers). `Str`
- `enable` 0 (disabled) 1 (enabled). `Int`
- `required` in case of connection failures, the download queue will be paused for a few minutes instead of skipping this server, 0 (disabled) 1 (enabled). `Int`
- `optional` for unreliable servers, will be ignored longer in case of failures, 0 (disabled) 1 (enabled). `Int`
- `send_group` send group command before requesting articles, 0 (disabled) 1 (enabled). `Int`
- `priority` assign each server a priority, a number between 0 (highest) and 99 (lowest). `Int`
- [READ THIS FOR MORE INFORMATION](https://sabnzbd.org/wiki/configuration/4.2/servers)

**10. RSS**

Expand Down
2 changes: 1 addition & 1 deletion bot/modules/bot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ async def edit_nzb(_, message, pre_message, key):
if value.isdigit():
value = int(value)
elif value.startswith("[") and value.endswith("]"):
value = f"{eval(value).join(',')}"
value = ",".join(eval(value))
res = await nzb_client.set_config("misc", key, value)
value = res["misc"][key]
nzb_options[key] = value
Expand Down

0 comments on commit e60f0b6

Please sign in to comment.