-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpha #254
Open
jammesop007aha
wants to merge
53
commits into
SilentDemonSD:alpha
Choose a base branch
from
jammesop007aha:alpha
base: alpha
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Alpha #254
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
a899c5b
improve
jammesop007aha 238849a
improve
jammesop007aha c85f696
improve
jammesop007aha 88d8544
improve
jammesop007aha 1a1d10a
improve
jammesop007aha aff3a33
improve
jammesop007aha 46ffd15
improve
jammesop007aha 75c0004
improve
jammesop007aha b31bba0
improve
jammesop007aha 3c44cba
improve
jammesop007aha 393eecf
improve
jammesop007aha 5884376
improve
jammesop007aha f6c9940
improve
jammesop007aha c91e08a
improve
jammesop007aha 0e88e5d
improve
jammesop007aha ce96f61
improve
jammesop007aha b25e1ad
improve
jammesop007aha 0e88a6f
improve
jammesop007aha 86a6f75
improve
jammesop007aha 55e066e
improve
jammesop007aha 4090e20
improve
jammesop007aha 1370ca3
improve
jammesop007aha 85929a9
improve
jammesop007aha 37c0bea
improve
jammesop007aha 0f2013f
improve
jammesop007aha 78d0094
improve
jammesop007aha 71dd35c
improve
jammesop007aha ff65b49
improve
jammesop007aha abcae4e
improve
jammesop007aha ae9730e
improve
jammesop007aha 019901b
improve
jammesop007aha a93c29b
improve
jammesop007aha f674a12
improve
jammesop007aha 676d04e
improve
jammesop007aha 3639aa7
improve
jammesop007aha 1cc66ac
improve
jammesop007aha 2de483d
improve
jammesop007aha 0ecec4f
improve
jammesop007aha bc48d5e
improve
jammesop007aha 464a130
improve
jammesop007aha bd7dda7
improve
jammesop007aha dd0de99
improve
jammesop007aha 0bec5c4
improve
jammesop007aha 8556f28
improve
jammesop007aha 12a5c1e
improve
jammesop007aha 67e150b
improve
jammesop007aha ba33da1
improve
jammesop007aha c357bc6
improve
jammesop007aha f72d271
improve
jammesop007aha 46c2515
improve
jammesop007aha 395e1bf
improve
jammesop007aha 2c0d1b8
improve
jammesop007aha db68750
improve
jammesop007aha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,21 +1,9 @@ | ||
config.env | ||
# Python bytecode and configuration files | ||
*.pyc | ||
data* | ||
.vscode | ||
.idea | ||
*.json | ||
*.pickle | ||
.netrc | ||
log.txt | ||
accounts/* | ||
Thumbnails/* | ||
MediaInfo/* | ||
Images/* | ||
rclone/* | ||
list_drives.txt | ||
cookies.txt | ||
downloads | ||
bot.session | ||
user.session | ||
terabox.txt | ||
rclone.conf | ||
config.env | ||
|
||
# IDE-specific files | ||
.vscode/ | ||
.idea/ | ||
|
||
|
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
tracker_list=$(curl -Ns https://ngosang.github.io/trackerslist/trackers_all_http.txt | awk '$0' | tr '\n\n' ',') | ||
#!/bin/bash | ||
|
||
# Get the tracker list and check if the curl command was successful | ||
if ! tracker_list=$(curl -Ns https://ngosang.github.io/trackerslist/trackers_all_http.txt | awk '$0' | tr '\n\n' ','); then | ||
echo "Error: Failed to download tracker list" | ||
exit 1 | ||
fi | ||
|
||
# Download the torrent file and specify the download directory | ||
aria2c --allow-overwrite=true --auto-file-renaming=true --bt-enable-lpd=true --bt-detach-seed-only=true \ | ||
--bt-remove-unselected-file=true --bt-tracker="[$tracker_list]" --bt-max-peers=0 --enable-rpc=true \ | ||
--rpc-max-request-size=1024M --max-connection-per-server=10 --max-concurrent-downloads=10 --split=10 \ | ||
--seed-ratio=0 --check-integrity=true --continue=true --daemon=true --disk-cache=40M --force-save=true \ | ||
--min-split-size=10M --follow-torrent=mem --check-certificate=false --optimize-concurrent-downloads=true \ | ||
--http-accept-gzip=true --max-file-not-found=0 --max-tries=20 --peer-id-prefix=-qB4520- --reuse-uri=true \ | ||
--content-disposition-default-utf8=true --user-agent=Wget/1.12 --peer-agent=qBittorrent/4.5.2 --quiet=true \ | ||
--summary-interval=0 --max-upload-limit=1K | ||
--summary-interval=0 --max-upload-limit=1K -z --log-level=error --dir=/path/to/download/directory --input-file=/path/to/torrent/file |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ Codacy found a minor Code Style issue: undefined name 'bot' (F821)
The issue identified by the Prospector linter is that the variable
bot
is used, but it has not been defined anywhere in the code snippet provided. This would cause aNameError
at runtime when theif __name__ == '__main__':
block is executed because Python does not know whatbot
refers to.To fix this issue, you would need to ensure that
bot
is defined before it is used. However, without additional context, I cannot provide the exact definition ofbot
. Usually,bot
would be an instance of a bot object, perhaps from a library likepython-telegram-bot
or a similar framework.Assuming you have a function or a class that initializes your bot, you would need to add a line of code that defines
bot
before you use it. Here's a generic suggestion:Replace
initialize_bot()
with the actual function or constructor call that you have in your codebase to create thebot
object.This comment was generated by an experimental AI tool.