113 lines
3.9 KiB
YAML
113 lines
3.9 KiB
YAML
# Zurg configuration version
|
|
zurg: v1
|
|
token: YOUR_RD_API_TOKEN # https://real-debrid.com/apitoken
|
|
|
|
# do not change this if you are running it inside a docker container
|
|
host: "[::]"
|
|
port: 9999
|
|
|
|
# you can protect your zurg server with username+password auth
|
|
# username: yowmamasita
|
|
# password: 1234
|
|
|
|
# You can proxy all zurg requests like this:
|
|
# proxy: "http://[username:password@]host:port"
|
|
# proxy: "https://[username:password@]host:port"
|
|
# proxy: "socks5://[username:password@]host:port"
|
|
|
|
# How many requests in parallel should we send to Real-Debrid API?
|
|
concurrent_workers: 20
|
|
|
|
# How often should we check Real-Debrid API for file changes?
|
|
check_for_changes_every_secs: 15
|
|
|
|
# if true, saved rename info (if it exists) will be ignored
|
|
ignore_renames: false
|
|
|
|
# if true, it will strictly follow Real-Debrid API filename property
|
|
# setting to true should make zurg more compatible with rdt-client
|
|
retain_rd_torrent_name: false
|
|
|
|
# note: this is for cosmetic purposes only
|
|
# if true, zurg won't drop file extensions from directories
|
|
retain_folder_name_extension: false
|
|
|
|
# if true, zurg will delete Real-Debrid rar'ed torrents
|
|
# they are always compressed in a rar archive no matter what files you select
|
|
auto_delete_rar_torrents: false
|
|
|
|
# if true, during zurg initialization, it will fetch all downloads to unrestrict links faster
|
|
# it will also mount your download links in a special directory
|
|
use_download_cache: true
|
|
|
|
# BEWARE! THERE CAN ONLY BE 1 INSTANCE OF ZURG THAT SHOULD REPAIR YOUR TORRENTS
|
|
enable_repair: true
|
|
|
|
# this is useful for ensuring Plex adds your new content immediately
|
|
# uncomment the next line for triggering a partial scan
|
|
# on_library_update: sh plex_update.sh "$@"
|
|
# on_library_update: '& C:\zurg\plex_udpdate.ps1 $args'
|
|
on_library_update: |
|
|
for arg in "$@"
|
|
do
|
|
echo "detected update on: $arg"
|
|
done
|
|
|
|
# buffer size when zurg is streaming files
|
|
network_buffer_size: 1048576 # 1 MiB
|
|
|
|
# true = send link to rclone and rclone will stream the file
|
|
# false = zurg will stream the file
|
|
serve_from_rclone: false
|
|
|
|
# force connect to real-debrid ipv6 addresses
|
|
# useful if you are blocked
|
|
force_ipv6: false
|
|
|
|
# sleep time after getting a 429 from Real-Debrid API
|
|
rate_limit_sleep_secs: 6
|
|
|
|
# time to wait before timing out
|
|
realdebrid_timeout_secs: 60
|
|
|
|
# api response failures until considered failed
|
|
retries_until_failed: 5
|
|
|
|
# use the fastest hosts from your location
|
|
# Run ./zurg network-test
|
|
# preferred_hosts:
|
|
# - 20.download.real-debrid.com
|
|
# - 21.download.real-debrid.com
|
|
# - 22.download.real-debrid.com
|
|
# - 23.download.real-debrid.com
|
|
# - 30.download.real-debrid.com
|
|
# - 31.download.real-debrid.com
|
|
# - 32.download.real-debrid.com
|
|
# - 34.download.real-debrid.com
|
|
# - 40.download.real-debrid.com
|
|
|
|
# List of directory definitions and their filtering rules
|
|
directories:
|
|
# Configuration for anime shows
|
|
anime:
|
|
group: media # directories on different groups have duplicates of the same torrent
|
|
group_order: 10 # group order = priority, it defines who eats first on a group
|
|
filters:
|
|
- and: # you can use nested 'and' & 'or' conditions
|
|
- has_episodes: true # intelligent detection of episode files inside a torrent
|
|
- any_file_inside_regex: /^\[/ # usually anime starts with [ e.g. [SubsPlease]
|
|
- any_file_inside_not_regex: /s\d\de\d\d/i # and usually anime doesn't use SxxExx
|
|
|
|
shows:
|
|
group: media
|
|
group_order: 20
|
|
filters:
|
|
- has_episodes: true # intelligent detection of episode files inside a torrent
|
|
|
|
movies:
|
|
group: media # because anime, shows and movies are in the same group,
|
|
group_order: 30 # and anime and shows has a lower group_order number than movies, all torrents that doesn't fall into the previous 2 will fall into movies
|
|
only_show_the_biggest_file: true # let's not show the other files besides the movie itself
|
|
filters:
|
|
- regex: /.*/ # you cannot leave a directory without filters because it will not have any torrents in it
|