From 1640ef4c7ec6eb7e29c6f78436752f2df229b54b Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Tue, 23 Jan 2024 00:28:54 +0100 Subject: [PATCH] Use added attribute for infuse users --- config.example.yml | 1 + internal/dav/infuse.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.example.yml b/config.example.yml index 258d8cd..badbd3f 100644 --- a/config.example.yml +++ b/config.example.yml @@ -46,6 +46,7 @@ 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 diff --git a/internal/dav/infuse.go b/internal/dav/infuse.go index 492a258..923125b 100644 --- a/internal/dav/infuse.go +++ b/internal/dav/infuse.go @@ -87,7 +87,7 @@ func ServeFilesListForInfuse(directory, torrentName string, torMgr *torrent.Torr if dirCfg.OnlyShowFilesWithSizeGte > 0 && file.Bytes < dirCfg.OnlyShowFilesWithSizeGte { continue } - buf.WriteString(dav.File(filename, file.Bytes, file.Ended)) + buf.WriteString(dav.File(filename, file.Bytes, tor.Added)) } buf.WriteString("") return buf.Bytes(), nil