debridmediamanager / zurg-testing

A self-hosted Real-Debrid webdav server you can use with Infuse. Together with rclone it can mount your Real-Debrid torrent library into your filesystem and load it to Plex or Jellyfin.
416 stars 30 forks source link

Bug: plex_update.ps1 issue? #68

Closed xkenx1995 closed 6 months ago

xkenx1995 commented 7 months ago

Expected Behavior Describe what you expect to happen. partial refresh after media is added with DMM

Actual Behavior

2024-01-31T21:42:45.699-0800 INFO manager Detected changes! Refreshing 82 torrents 2024-01-31T21:42:46.447-0800 DEBUG realdebrid Got info for torrent 6SSQZYS6EAEJ4 (progress=100%) 2024-01-31T21:42:46.449-0800 DEBUG manager Saved torrent 6SSQZYS6EAEJ4 to file 2024-01-31T21:42:46.450-0800 INFO manager Fetched info for 82 torrents 2024-01-31T21:42:46.450-0800 INFO manager Compiled into 82 torrents, 0 were missing info 2024-01-31T21:42:46.450-0800 INFO manager Finished refreshing torrents 2024-01-31T21:42:48.064-0800 DEBUG manager Output of hook on_library_update: Detected update on: Absolute path: Z:/ Detected update on: zurg Absolute path: Z:/zurg Detected update on: movies/Justice.League.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT Absolute path: Z:/movies/Justice.League.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT Detected update on: all/Justice.League.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT Absolute path: Z:/all/Justice.League.2017.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT All updated sections refreshed

snippet of log, however plex does not trigger an update.

Detailed Steps Detail out everything that you did leading up to the issue.

updated to hotfix 6. it was working fine on hotfix 4, but now I cant even get that one to work when I revert everything back.

Operating System What OS are you running? (e.g., Windows, macOS, Linux) If on Windows, are you using Windows Subsystem for Linux (WSL)?

Windows 11

Environment Setup Are you using Docker, or are you using Zurg's binary? If Docker, please include your docker-compose.yml. If Zurg's binary, specify the version by running ./zurg version

Logs Upload your logs by going to http://ZURGIP:9999/logs/upload and paste the link here

https://0x0.st/HDpM.log

If you are running it in Docker, your container logs will also help.

Rclone Configuration Attach or detail your rclone.conf.

mount zurg: z: --dir-cache 10s

Zurg Configuration Include your config.yaml or any other relevant configuration files.

Zurg configuration version

zurg: v1 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 "$@"

if on Windows uncomment the line below but comment out the one after it

on_library_update: '& .\plex_update.ps1 $args'

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

true = zurg will check if the link is really working

only relevant if serve_from_rclone is set to true

as it already does this all the time if serve_from_rclone is false

verify_download_link: true

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:

Screenshots If applicable, add screenshots to help explain your problem.

yowmamasita commented 6 months ago

maybe your plex token expired?

xkenx1995 commented 6 months ago

maybe your plex token expired?

oh didnt know thats possible? I check xml and it is still the same token

edit: changed plex token and still didn't work

yowmamasita commented 6 months ago

the plex_update.ps1 issue is a community supported script, not really zurg. I suppose better to ask in the subreddit or in discord

xkenx1995 commented 6 months ago

the plex_update.ps1 issue is a community supported script, not really zurg. I suppose better to ask in the subreddit or in discord

gotcha. Any way to make it work through the config where it doesnt call on a script?

yowmamasita commented 6 months ago

Unfortunately the script is the only way to trigger plex