Skip to content

Commit

Permalink
Merge pull request #107 from ManiMatter/qBit-connection-test-prior-to…
Browse files Browse the repository at this point in the history
…-checking-for-slowness

Bug fix
  • Loading branch information
ManiMatter authored May 13, 2024
2 parents 881aaf3 + 2f69472 commit f9f46c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/remove_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def remove_slow(settingsDict, BASE_URL, API_KEY, NAME, deleted_downloads,
alreadyCheckedDownloadIDs = []

if settingsDict['QBITTORRENT_URL']:
qBitConnectionStatus = await rest_get(settingsDict['QBITTORRENT_URL']+'/sync/maindata', cookies=settingsDict['QBIT_COOKIE'])['server_state']['connection_status']
qBitConnectionStatus = (await rest_get(settingsDict['QBITTORRENT_URL']+'/sync/maindata', cookies=settingsDict['QBIT_COOKIE']))['server_state']['connection_status']
if qBitConnectionStatus == 'disconnected':
logger.warning('>>> qBittorrent is disconnected. Skipping %s queue cleaning failed on %s.',failType, NAME)
return 0
Expand Down

0 comments on commit f9f46c5

Please sign in to comment.