✦ 一种强大的解决方案,可解决 Starr 应用程序下载停止的问题。
Radarr, Sonarr and the other Starrs currently lack a built-in mechanism to handle stalled downloads, this project aims to solve that.
Swaparr is inspired by a Reddit thread "I wrote a script that repl.." from Douglas96.
If Swaparr has been helpful to you and you appreciate the power of open-source software, please consider giving this repository a star. Your gesture will greatly support our efforts and help others discover Swaparr!
Swaparr quietly operates in the background, offering full customization options and clear visibility through console logs. Its primary function is to address the issue of stalled downloads in starr instances.
Docker and it's compose plugin are required, below is a matrix on how to install both for your system:
| Operating System | Official Instructions |
|---|---|
| Linux | docs.docker.com/../linux-install |
| MacOS | docs.docker.com/.../mac-install |
| Windows | docs.docker.com/.../windows-install |
Start with the provided compose file as a foundation, and customize it by excluding or adjusting any services.
… Extended experimental support: Lidarr, Readarr and Whisparr…To start Swaparr, run the following command:
docker compose up -dYou can monitor Swaparr's activities and track the processing of downloads by executing the following command. Omit the parameter to view logs for all platforms:
docker compose logs Instructions: Stop or Update SwaparrTo shutdown Swaparr, run the following command:
docker compose downUpdating Swaparr is a breeze, pull the latest images and restart the service:
docker compose pulldocker compose downdocker compose up -dA brief rundown to shed light on a couple of things for you:
Environment Variables| Name | Default | Description |
|---|---|---|
| BASEURL | http://127.0.0.1:7878 |
The URL of a radarr, sonarr or other starr instance. |
| APIKEY | 7f3a8..cbc07 |
The API key of a radarr, sonarr or other starr instance. |
| PLATFORM | radarr |
Indicates the type of starr platform, either radarr, sonarr, lidarr, readarr or whisparr. |
| MAX_STRIKES | 3 |
Maximum number of strikes a download can accumulate before it is removed. |
| SCAN_INTERVAL | 10m |
How often Swaparr checks for stalled downloads. |
| MAX_DOWNLOAD_TIME | 2h |
Maximum allowed download time before it's considered stalled. |
| IGNORE_ABOVE_SIZE | 25GB |
Files larger than this size will be ignored and not monitored. |
| REMOVE_FROM_CLIENT | true |
Remove from both queue and download client (default) OR false only the queue of a starr instance. |
| STRIKE_QUEUED | false |
When enabled, queued downloads are eligible to be striked instead of being bypassed. |
| DRY_RUN | false |
Sandbox mode; try Swaparr without it performing destructive actions on your instances. |
Status-Types Explained| Status | Description |
|---|---|
Normal |
Download is proceeding as expected; no issues detected. |
Striked |
Download flagged as slow or stalled; may be removed if it continues to accumulate strikes. |
Removed |
Download has been attempted to be removed from the starr instance. |
Ignored |
Download is not monitored because it falls outside the set thresholds (e.g., size or time limits). |
Queued |
Download is in the queue within the download client waiting to start; will not be striked. |
Delayed |
Download is temporarily paused or scheduled for later processing as defined in a delay profile. |
Completed |
Download has finished and is seeding; will not be striked. |
Whether you need help, want to pitch in, or found a bug that needs fixing, just open an issue. We're all ears and ready to collaborate with you!
暂无开放 Issues,或尚未同步最近议题。