Skip to content

Commit

Permalink
[minor] Added new functionality to allow stalled torrents with or wit…
Browse files Browse the repository at this point in the history
…hout a delay

Added new fields `AutoPauseResume`, `ReSearchStalled` and `StalledDelay`
  • Loading branch information
Feramance authored Jul 5, 2024
2 parents 601e10b + cf4497f commit be248e5
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
github: [feramance]
patreon: qBitrr
ko_fi: feramance
custom: [https://www.paypal.me/feramance]
custom: ["https://www.paypal.me/feramance"]
5 changes: 1 addition & 4 deletions .github/workflows/branch_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ name: Branch Nightly
on:
push:
branches:
- v*
- fix*
- dev*
- test*
- '*'
- '!master'

defaults:
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,23 @@ jobs:
- '3.10'
os:
- windows-latest
- macOS-latest
- ubuntu-latest
arch:
- x86
- x64
- arm64
exclude:
- os: ubuntu-latest
arch: x86
- os: ubuntu-latest
arch: arm64
- os: macOS-latest
arch: x64
- os: macOS-latest
arch: x86
- os: windows-latest
arch: arm64
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -95,3 +109,55 @@ jobs:
name: automated-build-${{ steps.archieve.outputs.NAME }}
path: ${{ steps.archieve.outputs.NAME }}.*
if-no-files-found: error
docker_image:
name: Build Docker Image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- id: string
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.REG_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
feramance/qbitrr
ghcr.io/${{ steps.string.outputs.lowercase }}
tags: |
type=ref,event=pr
- name: Build and push Docker images
env:
DOCKER_BUILDKIT: 1
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
29 changes: 28 additions & 1 deletion config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ Logging = true
# Folder where your completed downloads are put into. Can be found in qBitTorrent -> Options -> Downloads -> Default Save Path (Please note, replace all '\' with '/')
CompletedDownloadFolder = "CHANGE_ME"

#The desired amount of free space in the downloads directory [K=kilobytes, M=megabytes, G=gigabytes, T=terabytes] (set to -1 to disable)
#The desired amount of free space in the downloads directory [K=kilobytes, M=megabytes, G=gigabytes, T=terabytes] (set to -1 to disable, this bypasses AutoPauseResume)
FreeSpace = "-1"

# Enable automation of pausing and resuming torrents as needed (Required enabled for the FreeSpace logic to function)
AutoPauseResume = true

# Time to sleep for if there is no internet (in seconds: 600 = 10 Minutes)
NoInternetSleepTimer = 15

Expand Down Expand Up @@ -214,6 +217,12 @@ MaximumDeletablePercentage = 0.99
# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = false

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = -1


[Sonarr-TV.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
Expand Down Expand Up @@ -411,6 +420,12 @@ MaximumDeletablePercentage = 0.99
# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = false

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = -1


[Sonarr-Anime.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
Expand Down Expand Up @@ -604,6 +619,12 @@ MaximumDeletablePercentage = 0.99
# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = false

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = -1


[Radarr-1080.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
Expand Down Expand Up @@ -810,6 +831,12 @@ MaximumDeletablePercentage = 0.99
# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = false

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = -1


[Radarr-4K.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
Expand Down
Loading

0 comments on commit be248e5

Please sign in to comment.