Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nubuki-all committed Dec 11, 2024
1 parent 345b40d commit 8435c9e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bot/startup/after.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ async def start_aria2p():

async def start_qbit():
os.system(
f"qbittorrent-nox -d --webui-port={conf.QBIT_PORT} --profile={os.getcwd()}"
f"qbittorrent-nox -d --webui-port={conf.QBIT_PORT} --profile={os.getcwd()}/qbit"
)
os.system(
f"qbittorrent-nox -d --webui-port={conf.QBIT_PORT2} --profile={os.getcwd()}/qbit2"
f"qbittorrent-nox -d --webui-port={conf.QBIT_PORT2} --profile={os.getcwd()}/qbit --configuration=1"
)
# TO_DO: Properly check if qbit is fully operational.
_bot.sqs = True
Expand Down
5 changes: 3 additions & 2 deletions bot/startup/before.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
if conf.REPORT_FAILED_ENC:
_bot.report_failed_enc = True


if not file_exists(ffmpeg_file):
with open(ffmpeg_file, "w") as file:
file.write(str(conf.FFMPEG) + "\n")
Expand Down Expand Up @@ -89,8 +90,8 @@
if not os.path.isdir("minfo/"):
os.mkdir("minfo/")

if not os.path.isdir("qbit2/"):
shutil.copytree("qBittorrent", "qbit2/qBittorrent")

# shutil.copytree("qBittorrent", "qbit2/qBittorrent")

if conf.TEMP_USER:
for t in conf.TEMP_USER.split():
Expand Down
File renamed without changes.
65 changes: 65 additions & 0 deletions qbit/qBittorrent_1/config/qBittorrent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[Application]
MemoryWorkingSetLimit=512

[BitTorrent]
Session\AddExtensionToIncompleteFiles=true
Session\AddTrackersEnabled=false
Session\AnnounceToAllTrackers=true
Session\AnonymousModeEnabled=false
Session\AsyncIOThreadsCount=16
Session\ConnectionSpeed=-1
Session\DHTEnabled=true
Session\DiskCacheSize=-1
Session\GlobalDLSpeedLimit=0
Session\GlobalMaxRatio=-1
Session\GlobalMaxSeedingMinutes=-1
Session\GlobalUPSpeedLimit=0
Session\HashingThreadsCount=1
Session\IgnoreSlowTorrentsForQueueing=true
Session\IncludeOverheadInLimits=false
Session\LSDEnabled=true
Session\MaxActiveCheckingTorrents=3
Session\MaxActiveDownloads=100
Session\MaxActiveTorrents=50
Session\MaxActiveUploads=50
Session\MaxConnections=-1
Session\MaxConnectionsPerTorrent=-1
Session\MaxRatioAction=0
Session\MaxUploads=-1
Session\MaxUploadsPerTorrent=-1
Session\MultiConnectionsPerIp=true
Session\PexEnabled=true
Session\PerformanceWarning=true
Session\Preallocation=true
Session\QueueingSystemEnabled=false
Session\SlowTorrentsDownloadRate=2
Session\SlowTorrentsInactivityTimer=600
Session\SlowTorrentsUploadRate=2
Session\StopTrackerTimeout=5
TrackerEnabled=true

[LegalNotice]
Accepted=true

[Meta]
MigrationVersion=4

[Preferences]
Advanced\DisableRecursiveDownload=false
Advanced\RecheckOnCompletion=false
Advanced\trackerPortForwarding=true
General\PreventFromSuspendWhenDownloading=true
General\PreventFromSuspendWhenSeeding=true
Search\SearchEnabled=true
WebUI\BanDuration=3600
WebUI\CSRFProtection=false
WebUI\ClickjackingProtection=false
WebUI\Enabled=true
WebUI\HTTPS\Enabled=false
WebUI\HostHeaderValidation=false
WebUI\LocalHostAuth=false
WebUI\MaxAuthenticationFailCount=10
WebUI\Port=8090
WebUI\SecureCookie=false
WebUI\SessionTimeout=3600
WebUI\UseUPnP=false

0 comments on commit 8435c9e

Please sign in to comment.