Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Sep 27, 2024
1 parent 6d08a93 commit 1c658f1
Show file tree
Hide file tree
Showing 56 changed files with 16,199 additions and 6,744 deletions.
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/.flake8

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install ruff
- name: Run linter
run: flake8 .
run: |
ruff check .
508 changes: 345 additions & 163 deletions cogs/commands.py

Large diffs are not rendered by default.

54 changes: 15 additions & 39 deletions data/example-config.py
Original file line number Diff line number Diff line change
@@ -1,45 +1,34 @@
config = {
"DEFAULT": {

# ------ READ THIS ------
# Any lines starting with the # symbol are commented and will not be used.
# If you change any of these options, remove the #
# -----------------------

"tmdb_api": "tmdb_api key",
"imgbb_api": "imgbb api key",
"ptpimg_api": "ptpimg api key",
"lensdump_api": "lensdump api key",
"ptscreens_api": "ptscreens api key",

# Order of image hosts, and backup image hosts
"img_host_1": "imgbb",
"img_host_2": "ptpimg",
"img_host_3": "imgbox",
"img_host_4": "pixhost",
"img_host_5": "lensdump",
"img_host_6": "ptscreens",


"screens": "6",
# Enable lossless PNG Compression (True/False)
"optimize_images": True,


# The name of your default torrent client, set in the torrent client sections below
"default_torrent_client": "Client1",

# Play the bell sound effect when asking for confirmation
"sfx_on_prompt": True,

},

"TRACKERS": {
# Which trackers do you want to upload to?
# Available tracker: BLU, BHD, AITHER, STC, STT, SN, THR, R4E, HP, ACM, PTP, LCD, LST, PTER, NBL, ANT, MTV, CBR, RTF, HUNO, BHDTV, LT, PTER, TL, TDC, HDT, OE, RF, OTW, FNP, UTP, AL, HDB, TIK, PSS, ULCX
# Remove the trackers from the default_trackers list that are not used, to save being asked everytime
"default_trackers": "BLU, BHD, AITHER, STC, STT, SN, THR, R4E, HP, ACM, PTP, LCD, LST, PTER, NBL, ANT, MTV, CBR, RTF, HUNO, BHDTV, LT, PTER, TL, TDC, HDT, OE, RF, OTW, FNP, UTP, AL, HDB, TIK, PSS, ULCX",

"BLU": {
"useAPI": False, # Set to True if using BLU
"api_key": "BLU api key",
Expand All @@ -64,10 +53,10 @@
"useAPI": False, # Set to True if using PTP
"add_web_source_to_desc": True,
"ApiUser": "ptp api user",
"ApiKey": 'ptp api key',
"ApiKey": "ptp api key",
"username": "",
"password": "",
"announce_url": ""
"announce_url": "",
},
"AITHER": {
"useAPI": False, # Set to True if using Aither
Expand All @@ -87,11 +76,11 @@
# "anon" : False
},
"MTV": {
'api_key': 'get from security page',
'username': '<USERNAME>',
'password': '<PASSWORD>',
'announce_url': "get from https://www.morethantv.me/upload.php",
'anon': False,
"api_key": "get from security page",
"username": "<USERNAME>",
"password": "<PASSWORD>",
"announce_url": "get from https://www.morethantv.me/upload.php",
"anon": False,
# 'otp_uri' : 'OTP URI, read the following for more information https://github.com/google/google-authenticator/wiki/Key-Uri-Format'
},
"STC": {
Expand All @@ -117,7 +106,6 @@
"api_key": "ACM api key",
"announce_url": "https://asiancinema.me/announce/customannounceurl",
# "anon" : False,

# FOR INTERNAL USE ONLY:
# "internal" : True,
# "internal_groups" : ["What", "Internal", "Groups", "Are", "You", "In"],
Expand Down Expand Up @@ -165,7 +153,7 @@
# "anon" : False
},
"PTER": {
"passkey": 'passkey',
"passkey": "passkey",
"img_rehost": False,
"username": "",
"password": "",
Expand Down Expand Up @@ -196,10 +184,10 @@
"RTF": {
"username": "username",
"password": "password",
"api_key": 'get_it_by_running_/api/ login command from https://retroflix.club/api/doc',
"api_key": "get_it_by_running_/api/ login command from https://retroflix.club/api/doc",
"announce_url": "get from upload page",
# "tag": "RetroFlix, nd",
"anon": True
"anon": True,
},
"RF": {
"api_key": "RF api key",
Expand Down Expand Up @@ -261,7 +249,6 @@
# "filebrowser" : "https://domain.tld/filebrowser/files/Upload-Assistant/"
},
},

# enable_search to True will automatically try and find a suitable hash to save having to rehash when creating torrents
# Should use the qbit API, but will also use the torrent_storage_dir to find suitable hashes
# If you find issue, use the "--debug" argument to print out some related details
Expand All @@ -277,7 +264,6 @@
"qbit_user": "username",
"qbit_pass": "password",
# "torrent_storage_dir": "path/to/BT_backup folder" ## use double-backslash on windows eg: "C:\\client\\backup"

# Remote path mapping (docker/etc.) CASE SENSITIVE
# "local_path": "/LocalPath",
# "remote_path": "/RemotePath"
Expand All @@ -292,32 +278,26 @@
# "torrent_storage_dir": "path/to/BT_backup folder"
# "qbit_tag": "tag",
# "qbit_cat": "category"

# Content Layout for adding .torrents: "Original"(recommended)/"Subfolder"/"NoSubfolder"
"content_layout": "Original"

"content_layout": "Original",
# Enable automatic torrent management if listed path(s) are present in the path
# If using remote path mapping, use remote path
# For using multiple paths, use a list ["path1", "path2"]
# "automatic_management_paths" : ""
# Remote path mapping (docker/etc.) CASE SENSITIVE
# "local_path" : "E:\\downloads\\tv",
# "remote_path" : "/remote/downloads/tv"

# Set to False to skip verify certificate for HTTPS connections; for instance, if the connection is using a self-signed certificate.
# "VERIFY_WEBUI_CERTIFICATE" : True
},

"rtorrent_sample": {
"torrent_client": "rtorrent",
"rtorrent_url": "https://user:[email protected]:443/username/rutorrent/plugins/httprpc/action.php",
# "torrent_storage_dir" : "path/to/session folder",
# "rtorrent_label" : "Add this label to all uploads"

# Remote path mapping (docker/etc.) CASE SENSITIVE
# "local_path" : "/LocalPath",
# "remote_path" : "/RemotePath"

},
"deluge_sample": {
"torrent_client": "deluge",
Expand All @@ -326,25 +306,21 @@
"deluge_user": "username",
"deluge_pass": "password",
# "torrent_storage_dir" : "path/to/session folder",

# Remote path mapping (docker/etc.) CASE SENSITIVE
# "local_path" : "/LocalPath",
# "remote_path" : "/RemotePath"
},
"watch_sample": {
"torrent_client": "watch",
"watch_folder": "/Path/To/Watch/Folder"
"watch_folder": "/Path/To/Watch/Folder",
},

},

"DISCORD": {
"discord_bot_token": "discord bot token",
"discord_bot_description": "L4G's Upload Assistant",
"command_prefix": "!",
"discord_channel_id": "discord channel id for use",
"admin_id": "your discord user id",

"search_dir": "Path/to/downloads/folder/ this is used for search",
# Alternatively, search multiple folders:
# "search_dir" : [
Expand All @@ -359,7 +335,7 @@
"ACM": "🍙",
"MANUAL": "📩",
"UPLOAD": "✅",
"CANCEL": "🚫"
}
}
"CANCEL": "🚫",
},
},
}
Loading

0 comments on commit 1c658f1

Please sign in to comment.