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