diff --git a/.silo-translations b/.silo-translations index eba90198cda..78fd899dda1 100644 --- a/.silo-translations +++ b/.silo-translations @@ -1,3 +1,3 @@ platform=web -version=2026.12.04-0b3cec1 -sha256=c6d8d85b1b97fad7089f605a524389e0780913bad094c09cffbebf2fea9e442a +version=2026.12.05-1ec18ef +sha256=907ce3bb89e3796f0ea73c1330779ef1ace2a63dc018b24bad57d68a7bfcbe5b diff --git a/contracts/api/v2/openapi.json b/contracts/api/v2/openapi.json index 19277ead928..fb7803b06c4 100644 --- a/contracts/api/v2/openapi.json +++ b/contracts/api/v2/openapi.json @@ -266420,7 +266420,7 @@ } } ], - "description": "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with file-derived strong ETag, standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee.", + "description": "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with an ETag computed from size, modification time and sampled file bytes (it does not prove byte equality), standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee.", "listener": "proxy", "method": "GET", "path": "/stream/direct/{token}", @@ -267006,7 +267006,7 @@ } } ], - "description": "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with file-derived strong ETag, standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee. HEAD suppresses response bytes but retains existing viewer tracking.", + "description": "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with an ETag computed from size, modification time and sampled file bytes (it does not prove byte equality), standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee. HEAD suppresses response bytes but retains existing viewer tracking.", "listener": "proxy", "method": "HEAD", "path": "/stream/direct/{token}", diff --git a/docs/admin-api.md b/docs/admin-api.md index 0c31754a94b..551843a9668 100644 --- a/docs/admin-api.md +++ b/docs/admin-api.md @@ -3568,17 +3568,14 @@ uncertain persistence before another explicit submission. debounce_seconds is the window in which autoscan drops repeat reports of a path. A report is dropped only when the same reported path in the same library was claimed within the window and still looks as it did at that claim: still missing, -or a regular file with the same size, modification time and, on Unix, inode. A -deleted file, or one whose size, modification time or inode changed, queues a -scan. A rewrite that keeps the size and inode within the filesystem's timestamp -resolution, or that a network mount's attribute cache hides, can still be -dropped, as can a same-size, same-time replacement on filesystems that derive -inode numbers from the path. Reports of existing directories are never dropped. -Repeats do not extend the window, and 0 disables it. Claims live in Redis and -are shared by all nodes; on mounts where each node assigns its own inode numbers -(some FUSE and SMB setups), a repeat handled by a different node does not match -and scans again. Without Redis, or when a Redis call fails, every report is -processed. +or a regular file with the same size and the same modification time to the +microsecond. A deleted file, or one whose size or modification time changed, +queues a scan. A same-size replacement that keeps the modification time is +dropped too, as is a rewrite that keeps the size and the modification time +within the microsecond, or that a network mount's attribute cache hides. +Reports of existing directories are never dropped. Repeats do not extend the +window, and 0 disables it. Claims live in Redis and are shared by all nodes. +Without Redis, or when a Redis call fails, every report is processed. The web enable switch and advanced form capture body and authority, disable retry and authentication replay, and invalidate the canonical reader only for the active diff --git a/docs/architecture/direct-stream-resume.md b/docs/architecture/direct-stream-resume.md index 1fcf59b4946..9b87d431cf7 100644 --- a/docs/architecture/direct-stream-resume.md +++ b/docs/architecture/direct-stream-resume.md @@ -15,21 +15,65 @@ Original-file responses follow the HTTP byte-range contract: `416 Requested Range Not Satisfiable` with `Content-Range: bytes */`. - `HEAD` returns the same representation headers as `GET` without a body. -On Linux, macOS, and Windows, each response carries a strong, opaque `ETag` -derived from the open file's filesystem identity, change time, modification -time, and size. The validator is stable while the playback plan's original-file -entity is unchanged, but changes for same-size replacements even when their -modification time is preserved. Platforms that cannot expose a durable -filesystem revision omit the validator instead of hashing an entire media file -before each request. On those platforms an ETag-based `If-Range` request cannot -match and safely falls back to a full `200 OK` response. +On every platform, each response that carries a representation has a +strong-form, opaque `ETag` when the sampled bytes can be read: a SHA-256 over +the file's size, its modification time to the microsecond, and its first and +last 64 KiB (the whole file when it is under 128 KiB). The tag holds no device, inode, or change time, so it +survives inode churn on a FUSE mount, `chmod`, a hardlink removal, and a switch +between API servers. The exception is an upgrade from a build that sends the +older `dsr1` tag: every tag changes once, so a resume that carries a `dsr1` tag +gets `200 OK`, on a single server as well as across old and new servers during +a rolling upgrade. Status-specific header rules +stay as they are: for example, `http.ServeContent` strips the tag from a `416`. + +The server samples the file only on a cache miss. A process-wide cache of 4,096 +entries, least recently used evicted, maps the path, the platform's filesystem +revision, and the size and modification time to the tag. A miss happens on the +first request for a file in a process, after a change of the local stat or the +path, after an eviction or a restart, and on every request where the platform +gives no usable local revision. The local stat decides only when to read again; +the bytes, size, and modification time decide whether the tag changes. A failed +read of the sampled bytes logs a warning without the media path, caches nothing, +and serves the file without an `ETag`, so each later request samples again. +With no tag, `http.ServeContent` answers an `If-Range` that carries an entity +tag with the full `200 OK`, fails an `If-Match` entity tag with `412`, and never +matches an `If-None-Match` entity tag. Date-form `If-Range` and the `*` wildcard +keep their standard handling. + +Two origins comparing fresh samples send the same tag only when both see the +same size, modification time to the microsecond, and sampled bytes. API servers +agree under the operator requirement in +[transcode-nodes.md](transcode-nodes.md), while a node or proxy mount that +dates files differently sends another tag, and a resume that switches to it +gets `200 OK`. A warm cache entry can also differ from a fresh sample after a +write the stat hides. + +The tag does not prove byte equality. Two changes keep the old tag: + +- A same-size edit that keeps or restores the modification time and leaves both + sampled ends unchanged. +- An edit at a sampled end that the local stat does not show, until the next + stat change, restart, or eviction. A network mount whose attribute cache + hides the write does this, and so does a same-size rewrite on a local disk + that restores the modification time inside one tick of the coarse change-time + clock. + +For either, a stale matching `If-Range` gets `206` with the requested range of +the current file, which a client may append to bytes it received from the +previous version; `If-Match` passes (`206`); `If-None-Match` answers `304`. + +The tag leaves out the inode, device, and change time, because they differ +between hosts and change without the bytes changing. It leaves out a hash of the +whole file, because that makes each request cost the file's size. It leaves out +a stored version or digest, which would be exact but needs the server to record +one for each file. A client resuming a transfer sends both `Range` and `If-Range` with the validator. When it still matches, the server returns the requested `206` -response. When the entity changed, the server ignores the range and returns the -entire current entity as `200 OK`, preventing bytes from different revisions -from being combined. `If-None-Match` uses the same validator for ordinary -conditional requests. +response. When the entity changed in a way the tag detects, the server ignores +the range and returns the entire current entity as `200 OK`, preventing bytes +from different revisions from being combined. `If-None-Match` uses the same +validator for ordinary conditional requests. For a bounded chunk read, a client can instead send `Range` and `If-Match`. When the validator matches, the server returns the requested `206` interval. diff --git a/docs/architecture/worker-http-protocol.md b/docs/architecture/worker-http-protocol.md index 67c7a4ea980..d7a38d89870 100644 --- a/docs/architecture/worker-http-protocol.md +++ b/docs/architecture/worker-http-protocol.md @@ -394,8 +394,10 @@ claims must select the committed proxy and recipe family; partial routing return method authority only within their token lifetime. Download, remux and transcode tokens are not interchangeable with direct-file authority. -Both methods use the existing ServeDirectPlay path and viewer tracking. File -identity supplies the strong ETag used by conditional resume; local file media +Both methods use the existing ServeDirectPlay path and viewer tracking. The +ETag used by conditional resume is a hash of the file's size, +modification time and sampled bytes, described in +[direct-stream-resume.md](direct-stream-resume.md); local file media comes from the owning extension map. Single/multipart ranges, 304, 412 and 416 retain standard conditional behavior. HEAD suppresses bytes. Rolling write deadlines and stream accounting remain unchanged; a later read failure can diff --git a/internal/autoscan/debounce_test.go b/internal/autoscan/debounce_test.go index da33ca5f211..79d4d21af97 100644 --- a/internal/autoscan/debounce_test.go +++ b/internal/autoscan/debounce_test.go @@ -110,14 +110,12 @@ func TestDebounceScansReplacementAtSamePath(t *testing.T) { state string // "" removes the file scan bool }{ - {name: "import", state: "file:100:1:10", scan: true}, - {name: "duplicate import", state: "file:100:1:10", scan: false}, - {name: "replacement with new size and mtime", state: "file:200:2:11", scan: true}, - {name: "rewrite with new mtime only", state: "file:200:3:11", scan: true}, - {name: "replacement with same size and mtime", state: "file:200:3:12", scan: true}, - {name: "duplicate of the replacement", state: "file:200:3:12", scan: false}, + {name: "import", state: "file:100:1", scan: true}, + {name: "duplicate import", state: "file:100:1", scan: false}, + {name: "replacement with new size and mtime", state: "file:200:2", scan: true}, + {name: "rewrite with new mtime only", state: "file:200:3", scan: true}, {name: "delete", state: "", scan: true}, - {name: "re-import of the original file", state: "file:100:1:10", scan: true}, + {name: "re-import of the original file", state: "file:100:1", scan: true}, } for _, step := range steps { if step.state == "" { @@ -273,18 +271,15 @@ func TestObservePathStateReplacementWithSameSizeAndMtime(t *testing.T) { } writeAt(path, "abc") - if info, err := os.Stat(path); err != nil { - t.Fatal(err) - } else if fileIdentity(info) == "" { - t.Skip("no file identity on this platform; the state is size and mtime only") - } original, ok := observePathState(path) if !ok || original == stateAbsent { t.Fatalf("existing file = (%q, %v), want a file state", original, ok) } // An importer writes the new file beside the old one and renames it into - // place: same path, same size, same modification time, different file. + // place: same path, same size, same modification time, different file. The + // scan a report queues decides change by size and modification time, so + // this reads as the same state. tmp := filepath.Join(dir, "movie.mkv.partial") writeAt(tmp, "xyz") if err := os.Rename(tmp, path); err != nil { @@ -294,8 +289,8 @@ func TestObservePathStateReplacementWithSameSizeAndMtime(t *testing.T) { if !ok { t.Fatalf("replaced file = (%q, false), want debounceable", replaced) } - if replaced == original { - t.Fatalf("replacement kept state %q", replaced) + if replaced != original { + t.Fatalf("same-size, same-mtime replacement state = %q, want the original state %q", replaced, original) } if again, _ := observePathState(path); again != replaced { t.Fatalf("unchanged replacement state %q != %q", again, replaced) diff --git a/internal/autoscan/fileidentity_other.go b/internal/autoscan/fileidentity_other.go deleted file mode 100644 index c64f3af58c8..00000000000 --- a/internal/autoscan/fileidentity_other.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build !unix - -package autoscan - -import "io/fs" - -// fileIdentity has no portable inode equivalent here; the debounce state -// falls back to size and modification time. -func fileIdentity(fs.FileInfo) string { return "" } diff --git a/internal/autoscan/fileidentity_unix.go b/internal/autoscan/fileidentity_unix.go deleted file mode 100644 index 0ab1e6cb1df..00000000000 --- a/internal/autoscan/fileidentity_unix.go +++ /dev/null @@ -1,20 +0,0 @@ -//go:build unix - -package autoscan - -import ( - "io/fs" - "strconv" - "syscall" -) - -// fileIdentity returns the inode number of info's file, so a file replaced at -// the same path with an identical size and modification time still reads as a -// new debounce state. It returns "" when the platform stat data is unavailable. -func fileIdentity(info fs.FileInfo) string { - st, ok := info.Sys().(*syscall.Stat_t) - if !ok || st == nil { - return "" - } - return strconv.FormatUint(st.Ino, 10) -} diff --git a/internal/autoscan/suppress.go b/internal/autoscan/suppress.go index d0951caea9d..206beae3b56 100644 --- a/internal/autoscan/suppress.go +++ b/internal/autoscan/suppress.go @@ -9,6 +9,8 @@ import ( "time" "github.com/redis/go-redis/v9" + + "github.com/Silo-Server/silo-server/internal/models" ) // Suppressor debounces repeated reports of the same observed change. A claim @@ -19,7 +21,8 @@ import ( // The window drops a report only when the path still looks exactly as it did // at the live claim: a duplicate delivery of a change that a scan has already // been queued for. A report that observes a different state (the file was -// deleted, replaced, or re-imported since the claim) claims again and scans. +// deleted, or its size or modification time changed since the claim) claims +// again and scans. type Suppressor interface { // ShouldScan atomically claims key for the observed state. It returns // true, recording state with a ttl expiry, when no claim is live or the @@ -91,11 +94,15 @@ const stateUnobserved = "unobserved" // observePathState returns the debounce state of a local path and whether a // repeated report of it may be debounced at all. A missing path is "absent"; -// a regular file is identified by its size, modification time, and (on Unix) -// inode number, as "file:::". A delete, a rewrite, or a -// replacement at the same path reads as a new state, including a replacement -// that keeps the old size and modification time. Claims recorded in an older -// token format never match, so they only ever cause an extra scan. +// a regular file is identified by its size and modification time to the +// microsecond, as "file::". A delete, or a change of either, +// reads as a new state. A replacement with the same size and the same +// microsecond modification time reads as the same state, so a repeat report of +// it inside the window is dropped: the scan it would queue also decides change +// by size and microsecond modification time (internal/scanner). A claim +// recorded in an older token format can match only when its old nanosecond +// value equals the new microsecond value, which no real file reaches; any other +// old claim never matches, so it only causes an extra scan. // // Anything else is never debounced. A directory's own metadata does not // change when a file deeper in its tree does, so a repeated directory report @@ -110,11 +117,7 @@ func observePathState(path string) (string, bool) { case err != nil: return "", false case info.Mode().IsRegular(): - state := fmt.Sprintf("file:%d:%d", info.Size(), info.ModTime().UnixNano()) - if id := fileIdentity(info); id != "" { - state += ":" + id - } - return state, true + return fmt.Sprintf("file:%d:%d", info.Size(), models.NormalizeFileModifiedAt(info.ModTime()).UnixMicro()), true default: return "", false } diff --git a/internal/downloads/serve_observer.go b/internal/downloads/serve_observer.go index 1cceb27c251..2f4b93a3dee 100644 --- a/internal/downloads/serve_observer.go +++ b/internal/downloads/serve_observer.go @@ -32,21 +32,21 @@ func notifyServeAuthorized(ctx context.Context, target FileTarget) { // WithServeEntityTag makes local file serving send tag(file, info) as the // response ETag, computed from the descriptor it serves. Without it no ETag -// is sent. -func WithServeEntityTag(ctx context.Context, tag func(*os.File, os.FileInfo) string) context.Context { +// is sent. An error from tag is logged and the file is served without an ETag. +func WithServeEntityTag(ctx context.Context, tag func(*os.File, os.FileInfo) (string, error)) context.Context { if ctx == nil || tag == nil { return ctx } return context.WithValue(ctx, serveEntityTagContextKey{}, tag) } -func serveEntityTag(ctx context.Context, file *os.File, info os.FileInfo) string { +func serveEntityTag(ctx context.Context, file *os.File, info os.FileInfo) (string, error) { if ctx == nil { - return "" + return "", nil } - tag, _ := ctx.Value(serveEntityTagContextKey{}).(func(*os.File, os.FileInfo) string) + tag, _ := ctx.Value(serveEntityTagContextKey{}).(func(*os.File, os.FileInfo) (string, error)) if tag == nil { - return "" + return "", nil } return tag(file, info) } diff --git a/internal/downloads/service.go b/internal/downloads/service.go index f3e46a2b353..d8ace595233 100644 --- a/internal/downloads/service.go +++ b/internal/downloads/service.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "io" + "io/fs" "log/slog" "mime" "net/http" @@ -1778,12 +1779,24 @@ func (s *Service) serveLocalFile(ctx context.Context, w http.ResponseWriter, r * return fmt.Errorf("stat file: %w", err) } + etag, err := serveEntityTag(ctx, f, stat) + if err != nil { + // A file whose tag cannot be computed is still served: only the + // validator is lost. The structured log never carries the media path. + cause := err + if pathErr, ok := errors.AsType[*fs.PathError](err); ok { + cause = pathErr.Err + } + slog.WarnContext(ctx, "download entity tag failed", "component", "downloads", "error", cause) + etag = "" + } + if name == "" { name = path } w.Header().Set("Content-Disposition", attachmentDisposition(name)) w.Header().Set("Content-Type", playback.MimeFromExtension(path)) - if etag := serveEntityTag(ctx, f, stat); etag != "" { + if etag != "" { w.Header().Set("ETag", etag) } diff --git a/internal/downloads/service_read_error_test.go b/internal/downloads/service_read_error_test.go index dbccf445786..822b3bc5cf2 100644 --- a/internal/downloads/service_read_error_test.go +++ b/internal/downloads/service_read_error_test.go @@ -101,6 +101,54 @@ func TestLocalDownloadCanceledWritePersistsFailureDB(t *testing.T) { } } +// An entity tag that cannot be computed costs the response its ETag, not the +// download: the file is served whole under the usual attachment headers. A +// request that resumes with If-Range gets the full 200, since no tag can match. +func TestServeLocalFileEntityTagErrorServesWithoutETag(t *testing.T) { + const content = "synthetic media" + path := filepath.Join(t.TempDir(), "fixture.mp4") + if err := os.WriteFile(path, []byte(content), 0600); err != nil { + t.Fatal(err) + } + ctx := WithServeEntityTag(context.Background(), func(*os.File, os.FileInfo) (string, error) { + return "", errors.New("sample read failed") + }) + svc := &Service{} + + for _, tc := range []struct { + name string + headers map[string]string + }{ + {name: "plain get"}, + {name: "range with if-range", headers: map[string]string{"Range": "bytes=0-3", "If-Range": `"dsr2-0123"`}}, + } { + t.Run(tc.name, func(t *testing.T) { + req := httptest.NewRequest("GET", "/file", nil) + for name, value := range tc.headers { + req.Header.Set(name, value) + } + w := httptest.NewRecorder() + + if err := svc.serveLocalFile(ctx, w, req, path, "movie.mkv", 2); err != nil { + t.Fatalf("serveLocalFile error = %v, want nil", err) + } + + if w.Code != http.StatusOK { + t.Errorf("status = %d, want %d", w.Code, http.StatusOK) + } + if got := w.Body.String(); got != content { + t.Errorf("body = %q, want %q", got, content) + } + if got := w.Header().Get("ETag"); got != "" { + t.Errorf("ETag = %q, want none", got) + } + if got, want := w.Header().Get("Content-Disposition"), attachmentDisposition("movie.mkv"); got != want { + t.Errorf("Content-Disposition = %q, want %q", got, want) + } + }) + } +} + // Only a response that delivered the whole file completes an account-level // row: a HEAD probe or a partial range leaves it transferring (#4219). func TestEphemeralDownloadCompletesOnlyOnWholeFileDB(t *testing.T) { diff --git a/internal/playback/directplay.go b/internal/playback/directplay.go index b2fccfe8039..beb483ba740 100644 --- a/internal/playback/directplay.go +++ b/internal/playback/directplay.go @@ -2,7 +2,9 @@ package playback import ( "crypto/sha256" + "errors" "fmt" + "io/fs" "log/slog" "maps" "net/http" @@ -86,7 +88,8 @@ func MediaMIMETypes() []string { // ServeDirectPlay serves a media file with HTTP byte-range support. // Uses http.ServeContent for proper range handling, which supports // Range requests, conditional requests (including If-Match, If-Range, and -// If-None-Match), and Content-Type detection. +// If-None-Match), and Content-Type detection. A file whose entity tag cannot be +// computed is served without an ETag. func ServeDirectPlay(w http.ResponseWriter, r *http.Request, filePath string) error { // Media bodies routinely take longer than the server's absolute // WriteTimeout; roll the write deadline with progress instead. @@ -114,7 +117,16 @@ func ServeDirectPlay(w http.ResponseWriter, r *http.Request, filePath string) er } w.Header().Del("ETag") - etag := DirectPlayEntityTag(f, stat) + etag, err := DirectPlayEntityTag(f, stat) + if err != nil { + // A file whose ends cannot be sampled still plays: only the validator + // is lost. The structured log never carries the media path. + cause := err + if pathErr, ok := errors.AsType[*fs.PathError](err); ok { + cause = pathErr.Err + } + slog.WarnContext(r.Context(), "direct stream entity tag failed", "component", "playback", "error", cause) + } if etag != "" { w.Header().Set("ETag", etag) } diff --git a/internal/playback/directplay_etag.go b/internal/playback/directplay_etag.go index 1b8ba0a4707..d7efe1c0ce6 100644 --- a/internal/playback/directplay_etag.go +++ b/internal/playback/directplay_etag.go @@ -1,22 +1,179 @@ package playback import ( + "container/list" "crypto/sha256" "fmt" + "hash" + "io" "os" + "strconv" + "sync" + + "github.com/Silo-Server/silo-server/internal/models" ) -const directPlayETagVersion = "dsr1" +const ( + // directPlayETagVersion prefixes every tag and its hash header, so a change + // to the tag's inputs starts a new tag family. + directPlayETagVersion = "dsr2" + + // directPlaySampleBytes is the length read at each end of a file. + directPlaySampleBytes = 64 << 10 + + // directPlayWholeFileBytes is the size from which only the two ends are + // read; a smaller file is hashed whole. + directPlayWholeFileBytes = 2 * directPlaySampleBytes + + // directPlayTagCacheEntries bounds the process-wide tag cache. + directPlayTagCacheEntries = 4096 +) -// DirectPlayEntityTag is the strong validator ServeDirectPlay sends for file, -// or "" when the platform has no stable revision for it. A route that serves -// the same bytes through another writer sends it so If-Range resumes match. -func DirectPlayEntityTag(file *os.File, info os.FileInfo) string { +// DirectPlayEntityTag is the strong-form ETag ServeDirectPlay sends for file. +// A route that serves the same bytes through another writer sends it so +// If-Range resumes match. +// +// The tag is a SHA-256 over the file's size, its modification time to the +// microsecond, and its first and last 64 KiB (the whole file under 128 KiB). +// It holds no device, inode or change time, so it is the same wherever a +// reader sees the same size, modification time and sampled bytes: after inode +// churn on a FUSE mount, after chmod or a hardlink removal, and on another API +// server. +// +// The local stat decides only when to read the file again. A cache keyed by +// the path, the platform's filesystem revision and the hash header returns a +// stored tag without a read; any change of those inputs misses and samples +// again. The header is part of the key because Windows takes its revision from +// separate handle queries (directplay_revision_windows.go), apart from the +// size and modification time in info, and a write between them could otherwise +// store one file's tag under another's revision. Without a revision (the +// fallback build, a failed handle query, a Unix FileInfo without Sys) the +// file is sampled on every call and the cache is skipped; the tag is the +// same. +// +// Two changes keep the old tag: a same-size edit with the modification time +// kept or restored that leaves both ends unchanged, and, on a mount whose +// stat hides a write, an edit at an end until the next stat change, restart +// or eviction. +// +// A failed read, including a short one, returns an error and no tag, and +// nothing is cached; the caller logs the error and serves without a tag. +func DirectPlayEntityTag(file *os.File, info os.FileInfo) (string, error) { + header := directPlayTagHeader(info) revision, ok := directPlayFilesystemRevision(file, info) if !ok { - return "" + return sampleDirectPlayTag(file, info.Size(), header) } - digest := sha256.Sum256([]byte(directPlayETagVersion + "\x00" + revision)) - return fmt.Sprintf("\"%s-%x\"", directPlayETagVersion, digest) + key := file.Name() + "\x00" + revision + "\x00" + header + if tag, hit := directPlayTags.get(key); hit { + return tag, nil + } + tag, err := sampleDirectPlayTag(file, info.Size(), header) + if err != nil { + return "", err + } + directPlayTags.put(key, tag) + return tag, nil +} + +// directPlayTagHeader is the part of the hashed input that comes from info. +func directPlayTagHeader(info os.FileInfo) string { + mtime := models.NormalizeFileModifiedAt(info.ModTime()).UnixMicro() + return directPlayETagVersion + "\x00" + strconv.FormatInt(info.Size(), 10) + "\x00" + strconv.FormatInt(mtime, 10) + "\x00" +} + +// sampleDirectPlayTag hashes header and the sampled bytes of file, a file of +// size bytes. Reads use ReadAt, so the descriptor's offset stays where +// http.ServeContent expects it. +func sampleDirectPlayTag(file *os.File, size int64, header string) (string, error) { + digest := sha256.New() + _, _ = io.WriteString(digest, header) + for _, section := range directPlaySampleSections(size) { + if err := hashFileSection(digest, file, section.off, section.n); err != nil { + return "", err + } + } + return fmt.Sprintf("\"%s-%x\"", directPlayETagVersion, digest.Sum(nil)), nil +} + +// sampleSection is a byte range of a file: n bytes from offset off. +type sampleSection struct{ off, n int64 } + +// directPlaySampleSections lists the ranges of a size-byte file that the tag +// hashes, in order: the whole file under 128 KiB, else its first and last +// 64 KiB. +func directPlaySampleSections(size int64) []sampleSection { + if size < directPlayWholeFileBytes { + return []sampleSection{{off: 0, n: size}} + } + return []sampleSection{ + {off: 0, n: directPlaySampleBytes}, + {off: size - directPlaySampleBytes, n: directPlaySampleBytes}, + } +} + +// hashFileSection feeds n bytes of file from off into digest. A file that +// ends early is an error, so a short read is never hashed as complete. +func hashFileSection(digest hash.Hash, file *os.File, off, n int64) error { + if _, err := io.CopyN(digest, io.NewSectionReader(file, off, n), n); err != nil { + return fmt.Errorf("read %d bytes at offset %d: %w", n, off, err) + } + return nil +} + +// directPlayTags is the process-wide tag cache. +var directPlayTags = newDirectPlayTagCache(directPlayTagCacheEntries) + +// directPlayTagCache is a least-recently-used map from a tag key to its tag. +// The mutex covers only the map and list, never a file read. +type directPlayTagCache struct { + mu sync.Mutex + capacity int + order *list.List // front is the most recently used + entries map[string]*list.Element +} + +type directPlayTagEntry struct { + key string + tag string +} + +func newDirectPlayTagCache(capacity int) *directPlayTagCache { + return &directPlayTagCache{capacity: capacity, order: list.New(), entries: make(map[string]*list.Element, capacity)} +} + +func (c *directPlayTagCache) get(key string) (string, bool) { + c.mu.Lock() + defer c.mu.Unlock() + element, ok := c.entries[key] + if !ok { + return "", false + } + entry, ok := element.Value.(*directPlayTagEntry) + if !ok { + return "", false + } + c.order.MoveToFront(element) + return entry.tag, true +} + +func (c *directPlayTagCache) put(key, tag string) { + c.mu.Lock() + defer c.mu.Unlock() + if element, ok := c.entries[key]; ok { + if entry, ok := element.Value.(*directPlayTagEntry); ok { + entry.tag = tag + } + c.order.MoveToFront(element) + return + } + c.entries[key] = c.order.PushFront(&directPlayTagEntry{key: key, tag: tag}) + if c.order.Len() > c.capacity { + oldest := c.order.Back() + c.order.Remove(oldest) + if entry, ok := oldest.Value.(*directPlayTagEntry); ok { + delete(c.entries, entry.key) + } + } } diff --git a/internal/playback/directplay_test.go b/internal/playback/directplay_test.go index 82795f35651..c9bfac9d17b 100644 --- a/internal/playback/directplay_test.go +++ b/internal/playback/directplay_test.go @@ -72,14 +72,10 @@ func TestServeDirectPlayHTTPContract(t *testing.T) { t.Fatalf("Accept-Ranges = %q, want bytes", got) } etag := full.Header().Get("ETag") - validatorRequired := platformRequiresDirectPlayValidator() - if validatorRequired && etag == "" { - t.Fatalf("ETag omitted on supported platform %s", runtime.GOOS) - } - if !validatorRequired && etag != "" { - t.Fatalf("ETag = %q on unsupported platform %s, want omitted validator", etag, runtime.GOOS) + if etag == "" { + t.Fatalf("ETag omitted on %s", runtime.GOOS) } - if etag != "" && (strings.HasPrefix(etag, "W/") || !strings.HasPrefix(etag, "\"") || !strings.HasSuffix(etag, "\"")) { + if strings.HasPrefix(etag, "W/") || !strings.HasPrefix(etag, "\"") || !strings.HasSuffix(etag, "\"") { t.Fatalf("ETag = %q, want a strong quoted validator", etag) } @@ -159,21 +155,17 @@ func TestServeDirectPlayHTTPContract(t *testing.T) { name string rangeHeader string ifMatch, ifRange, ifNoneMatch string - needsValidator bool wantStatus int wantBody string }{ - {name: "matching If-Range", rangeHeader: "bytes=7-", ifRange: etag, needsValidator: true, wantStatus: http.StatusPartialContent, wantBody: content[7:]}, + {name: "matching If-Range", rangeHeader: "bytes=7-", ifRange: etag, wantStatus: http.StatusPartialContent, wantBody: content[7:]}, {name: "stale If-Range", rangeHeader: "bytes=7-", ifRange: "\"stale\"", wantStatus: http.StatusOK, wantBody: content}, - {name: "bounded range with matching If-Match", rangeHeader: "bytes=7-11", ifMatch: etag, needsValidator: true, wantStatus: http.StatusPartialContent, wantBody: content[7:12]}, + {name: "bounded range with matching If-Match", rangeHeader: "bytes=7-11", ifMatch: etag, wantStatus: http.StatusPartialContent, wantBody: content[7:12]}, {name: "bounded range with stale If-Match", rangeHeader: "bytes=7-11", ifMatch: "\"stale\"", wantStatus: http.StatusPreconditionFailed}, - {name: "If-None-Match", ifNoneMatch: etag, needsValidator: true, wantStatus: http.StatusNotModified}, + {name: "If-None-Match", ifNoneMatch: etag, wantStatus: http.StatusNotModified}, } for _, tt := range conditional { t.Run(tt.name, func(t *testing.T) { - if tt.needsValidator && !validatorRequired { - t.Skip("platform does not expose a durable file revision") - } rr := serve(http.MethodGet, tt.rangeHeader, tt.ifMatch, tt.ifRange, tt.ifNoneMatch) if rr.Code != tt.wantStatus { t.Fatalf("status = %d, want %d", rr.Code, tt.wantStatus) @@ -186,10 +178,6 @@ func TestServeDirectPlayHTTPContract(t *testing.T) { } func TestServeDirectPlayConditionalDiagnostics(t *testing.T) { - if !platformRequiresDirectPlayValidator() { - t.Skip("platform does not expose a durable file revision") - } - filePath := writeDirectPlayFixture(t, "private-fixture.mp4", "0123456789") var logs bytes.Buffer @@ -301,10 +289,6 @@ func TestServeDirectPlayConditionalDiagnostics(t *testing.T) { } func TestServeDirectPlayChangedEntityRejectsOldValidators(t *testing.T) { - if !platformRequiresDirectPlayValidator() { - t.Skip("platform does not expose a durable file revision") - } - dir := t.TempDir() filePath := filepath.Join(dir, "fixture.mp4") const original = "original bytes" @@ -330,12 +314,12 @@ func TestServeDirectPlayChangedEntityRejectsOldValidators(t *testing.T) { t.Fatal("test fixture must preserve file size") } - // Size and mtime are pinned identical on purpose, so the inode change time - // is the only thing left that can distinguish the two entities. Linux - // stamps ctime from a coarse clock — the whole rewrite finishes inside one - // tick — so writing once and reading immediately usually produces the same - // ctime and the test fails for a reason that has nothing to do with the - // validator. Rewrite until the stamp actually moves. + // Size and mtime are pinned identical on purpose, so only the bytes + // distinguish the two entities. The tag cache notices the rewrite only + // through the filesystem revision, and Linux stamps ctime from a coarse + // clock: a rewrite inside one tick keeps the revision, the cached tag is + // returned, and the test would fail for a reason that has nothing to do + // with the tag's inputs. Rewrite until the revision actually moves. deadline := time.Now().Add(2 * time.Second) for { if err := os.WriteFile(filePath, []byte(replacement), 0o600); err != nil { @@ -352,7 +336,7 @@ func TestServeDirectPlayChangedEntityRejectsOldValidators(t *testing.T) { break } if time.Now().After(deadline) { - t.Fatal("file revision never changed across a replacement; the platform exposes no usable validator") + t.Fatal("ETag never changed across a same-size replacement with different bytes") } time.Sleep(time.Millisecond) } @@ -392,7 +376,116 @@ func TestServeDirectPlayChangedEntityRejectsOldValidators(t *testing.T) { } } -func TestDirectPlayEntityTagOmitsUnsupportedRevision(t *testing.T) { +// TestServeDirectPlayReplacementAtSamePath renames a file over the served one +// with the same size and modification time. The replacement has a new inode and +// change time, and the second row also changes the last byte. The 192 KiB +// fixture is above the whole-file threshold, so the tag samples the head and +// the tail. +func TestServeDirectPlayReplacementAtSamePath(t *testing.T) { + const size = 192 * 1024 + fixture := make([]byte, size) + for i := range fixture { + fixture[i] = byte(i % 251) + } + lastByteChanged := bytes.Clone(fixture) + lastByteChanged[size-1] ^= 0xff + mtime := time.Date(2026, 1, 2, 3, 4, 5, 0, time.UTC) + + tests := []struct { + name string + replacement []byte + wantStatus int + wantBody []byte + wantSameTag bool + }{ + {name: "same bytes renamed over", replacement: fixture, wantStatus: http.StatusPartialContent, wantBody: fixture[100000:], wantSameTag: true}, + {name: "last byte changed renamed over", replacement: lastByteChanged, wantStatus: http.StatusOK, wantBody: lastByteChanged, wantSameTag: false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + path := filepath.Join(t.TempDir(), "movie.mkv") + write := func(p string, body []byte) { + t.Helper() + if err := os.WriteFile(p, body, 0o600); err != nil { + t.Fatal(err) + } + if err := os.Chtimes(p, mtime, mtime); err != nil { + t.Fatal(err) + } + } + write(path, fixture) + + first := httptest.NewRecorder() + if err := ServeDirectPlay(first, httptest.NewRequest(http.MethodGet, "/stream", nil), path); err != nil { + t.Fatal(err) + } + firstTag := first.Header().Get("ETag") + if firstTag == "" { + t.Fatal("first response omitted ETag") + } + + partial := path + ".partial" + write(partial, tt.replacement) + if err := os.Rename(partial, path); err != nil { + t.Fatal(err) + } + + req := httptest.NewRequest(http.MethodGet, "/stream", nil) + req.Header.Set("Range", "bytes=100000-") + req.Header.Set("If-Range", firstTag) + rr := httptest.NewRecorder() + if err := ServeDirectPlay(rr, req, path); err != nil { + t.Fatal(err) + } + if rr.Code != tt.wantStatus { + t.Fatalf("status = %d, want %d", rr.Code, tt.wantStatus) + } + if body := rr.Body.Bytes(); !bytes.Equal(body, tt.wantBody) { + t.Fatalf("body length = %d, want %d bytes equal to the expected content", len(body), len(tt.wantBody)) + } + if sameTag := rr.Header().Get("ETag") == firstTag; sameTag != tt.wantSameTag { + t.Fatalf("ETag = %q, first = %q; same = %v, want %v", rr.Header().Get("ETag"), firstTag, sameTag, tt.wantSameTag) + } + }) + } +} + +// TestDirectPlayEntityTagFailsOnShortSampleRead stats a 192 KiB file, shrinks +// it, and asks for the tag: the sample read comes up short, and a tag for +// bytes that were never read must not be returned or cached. +func TestDirectPlayEntityTagFailsOnShortSampleRead(t *testing.T) { + path := writeDirectPlayFixture(t, "movie.mkv", strings.Repeat("x", 192*1024)) + file, err := os.Open(path) + if err != nil { + t.Fatal(err) + } + t.Cleanup(func() { + if err := file.Close(); err != nil { + t.Errorf("close fixture: %v", err) + } + }) + info, err := file.Stat() + if err != nil { + t.Fatal(err) + } + if err := os.Truncate(path, 1024); err != nil { + t.Fatal(err) + } + + tag, err := DirectPlayEntityTag(file, info) + if err == nil { + t.Fatalf("DirectPlayEntityTag after truncation = (%q, nil), want an error", tag) + } + if tag != "" { + t.Fatalf("DirectPlayEntityTag after truncation returned tag %q with error %v, want an empty tag", tag, err) + } +} + +// TestDirectPlayEntityTagWithoutRevisionMatchesCachedTag checks the branch +// that skips the cache: a FileInfo with no platform stat data must still get +// the tag the cached branch gives. On Windows the revision ignores FileInfo, +// so there it covers the cached branch only. +func TestDirectPlayEntityTagWithoutRevisionMatchesCachedTag(t *testing.T) { filePath := writeDirectPlayFixture(t, "fixture.mp4", "abcdef") file, err := os.Open(filePath) if err != nil { @@ -408,8 +501,19 @@ func TestDirectPlayEntityTagOmitsUnsupportedRevision(t *testing.T) { if err != nil { t.Fatal(err) } - if got := DirectPlayEntityTag(file, fileInfoWithoutSystem{FileInfo: info}); got != "" { - t.Fatalf("ETag without durable revision = %q, want omitted validator", got) + withoutRevision, err := DirectPlayEntityTag(file, fileInfoWithoutSystem{FileInfo: info}) + if err != nil { + t.Fatalf("DirectPlayEntityTag without revision: %v", err) + } + withRevision, err := DirectPlayEntityTag(file, info) + if err != nil { + t.Fatalf("DirectPlayEntityTag with revision: %v", err) + } + if withoutRevision == "" || withRevision == "" { + t.Fatalf("tags = (%q without revision, %q with revision), want both non-empty", withoutRevision, withRevision) + } + if withoutRevision != withRevision { + t.Fatalf("tag without revision = %q, with revision = %q, want equal", withoutRevision, withRevision) } } @@ -431,15 +535,6 @@ func (fileInfoWithoutSystem) Sys() any { return nil } -func platformRequiresDirectPlayValidator() bool { - switch runtime.GOOS { - case darwinGOOS, "freebsd", linuxGOOS, windowsGOOS: - return true - default: - return false - } -} - func counterValue(t testing.TB, counter prometheus.Counter) float64 { t.Helper() metric := &dto.Metric{} @@ -465,3 +560,65 @@ func (w *deadlineResponseWriter) WriteHeader(status int) { func (w *deadlineResponseWriter) Write([]byte) (int, error) { return 0, os.ErrDeadlineExceeded } + +// truncateOnHeader runs truncate on the first Header call, then behaves as a +// plain ResponseRecorder. +type truncateOnHeader struct { + *httptest.ResponseRecorder + truncate func() +} + +func (w *truncateOnHeader) Header() http.Header { + if truncate := w.truncate; truncate != nil { + w.truncate = nil + truncate() + } + return w.ResponseRecorder.Header() +} + +// TestServeDirectPlaySampleReadFailureServesWithoutETag truncates the fixture +// to zero bytes after ServeDirectPlay has stat'd it and before the tag samples +// it, so the sample read comes up short. A failed tag costs the response its +// ETag, not the request: the serve returns no error and answers 200 with what +// the file holds now, which is nothing, and no ETag. A resume that sends +// Range with If-Range finds no tag to match, so it also gets the full 200 +// rather than a 206 or 416. The truncation hangs on the first Header call, +// which is the first use of the writer after f.Stat; a reordering of that code +// must move the interception to the new stat-to-read boundary. +func TestServeDirectPlaySampleReadFailureServesWithoutETag(t *testing.T) { + for _, tc := range []struct { + name string + headers map[string]string + }{ + {name: "plain get"}, + {name: "range with if-range", headers: map[string]string{"Range": "bytes=0-3", "If-Range": `"dsr2-0123"`}}, + } { + t.Run(tc.name, func(t *testing.T) { + path := writeDirectPlayFixture(t, "movie.mp4", "synthetic media") + w := &truncateOnHeader{ + ResponseRecorder: httptest.NewRecorder(), + truncate: func() { + if err := os.Truncate(path, 0); err != nil { + t.Fatal(err) + } + }, + } + req := httptest.NewRequest(http.MethodGet, "/stream", nil) + for name, value := range tc.headers { + req.Header.Set(name, value) + } + + if err := ServeDirectPlay(w, req, path); err != nil { + t.Fatalf("ServeDirectPlay error = %v, want nil", err) + } + + header := w.Result().Header + if w.Code != http.StatusOK || w.Body.Len() != 0 || header.Get("ETag") != "" { + t.Fatalf("status = %d, body = %q, ETag = %q, want 200, an empty body and no ETag", w.Code, w.Body.String(), header.Get("ETag")) + } + if got := header.Get("Content-Type"); got != "video/mp4" { + t.Errorf("Content-Type = %q, want video/mp4", got) + } + }) + } +} diff --git a/internal/playback/gpudetect.go b/internal/playback/gpudetect.go index f80d60299ed..80311eea963 100644 --- a/internal/playback/gpudetect.go +++ b/internal/playback/gpudetect.go @@ -27,9 +27,8 @@ import ( // GOOS names this package and its tests compare runtime.GOOS against. const ( - darwinGOOS = "darwin" - linuxGOOS = "linux" - windowsGOOS = "windows" + darwinGOOS = "darwin" + linuxGOOS = "linux" ) const ( diff --git a/internal/proxy/direct_protocol.go b/internal/proxy/direct_protocol.go index 504b1ca4725..7bd5feb777e 100644 --- a/internal/proxy/direct_protocol.go +++ b/internal/proxy/direct_protocol.go @@ -40,7 +40,7 @@ func ProtocolDirectPlayback() []workerprotocol.Operation { rangeMedia[multipartRanges] = binary op := workerprotocol.Operation{ Listener: listener, Method: method, Path: "/stream/direct/{token}", Handler: "(*internal/proxy.Server).handleDirectPlay", AuthClass: publicClass, - Description: "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with file-derived strong ETag, standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee.", + Description: "Signed direct-play token required despite public outer middleware. Committed routing must select this proxy and direct-play recipe; legacy empty routing retains only bounded original method authority. Delegates to ServeDirectPlay with an ETag computed from size, modification time and sampled file bytes (it does not prove byte equality), standard conditional/range handling, rolling write deadlines and viewer tracking. Partial routing returns 409; wrong egress or recipe family returns 503. Read interruption may truncate a committed response; no durable transfer or reconstruction guarantee.", Parameters: []*huma.Param{{Name: tokenParameter, In: pathParameter, Required: true, Schema: &huma.Schema{Type: huma.TypeString}, Description: "Signed expiring direct-play authority; download/remux/transcode tokens are not interchangeable."}}, Responses: map[string]*huma.Response{ "200": {Description: "Direct file bytes", Content: media}, diff --git a/web/src/locales/ar-XB.json b/web/src/locales/ar-XB.json index c523fab5c98..e8a68d4017a 100644 --- a/web/src/locales/ar-XB.json +++ b/web/src/locales/ar-XB.json @@ -71127,7 +71127,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "\u200F\u202EIgnores repeat reports of an unchanged file within this window. Changed or deleted files are still scanned.\u202C" + "value": "\u200F\u202EIgnores repeat reports within this window for a file whose size and modification time have not changed. Deleted files, and files with a new size or modification time, are still scanned.\u202C" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ar.json b/web/src/locales/ar.json index bc625ea791f..ec0125a5597 100644 --- a/web/src/locales/ar.json +++ b/web/src/locales/ar.json @@ -94442,7 +94442,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "يتجاهل البلاغات المتكررة عن ملف لم يتغير خلال هذه المهلة. أما الملفات المتغيرة أو المحذوفة فتُفحص كالمعتاد." + "value": "يتجاهل البلاغات المتكررة خلال هذه المهلة عن ملف لم يتغير حجمه ولا وقت تعديله. أما الملفات المحذوفة، والملفات التي تغيّر حجمها أو وقت تعديلها، فتُفحص كالمعتاد." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/bg.json b/web/src/locales/bg.json index 1918278108b..60b1dec9562 100644 --- a/web/src/locales/bg.json +++ b/web/src/locales/bg.json @@ -67507,7 +67507,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Игнорира повторните съобщения за непроменен файл в този интервал. Променените или изтритите файлове все пак се сканират." + "value": "Игнорира повторните съобщения в този интервал за файл, чиито размер и време на промяна не са се променили. Изтритите файлове и файловете с нов размер или ново време на промяна все пак се сканират." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ca.json b/web/src/locales/ca.json index 20370bb6454..6b56f9a3cde 100644 --- a/web/src/locales/ca.json +++ b/web/src/locales/ca.json @@ -74617,7 +74617,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Omet els avisos repetits d’un fitxer sense canvis dins d’aquest interval. Els fitxers modificats o eliminats s’analitzen igualment." + "value": "Omet els avisos repetits dins d’aquest interval per a un fitxer amb la mida i la data de modificació sense canvis. Els fitxers eliminats i els que tenen una mida o una data de modificació noves es continuen analitzant." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/cs.json b/web/src/locales/cs.json index e0928e84965..5da3eda811e 100644 --- a/web/src/locales/cs.json +++ b/web/src/locales/cs.json @@ -82027,7 +82027,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "V tomto intervalu ignoruje opakovaná hlášení o nezměněném souboru. Změněné nebo smazané soubory se prohledají i tak." + "value": "V tomto intervalu ignoruje opakovaná hlášení o souboru, jehož velikost a čas úpravy zůstaly stejné. Smazané soubory a soubory s novou velikostí nebo časem úpravy se prohledají i tak." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/da.json b/web/src/locales/da.json index 9b2f14fcf07..d51b39e984d 100644 --- a/web/src/locales/da.json +++ b/web/src/locales/da.json @@ -67247,7 +67247,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignorerer gentagne rapporter om en uændret fil inden for dette tidsrum. Ændrede eller slettede filer scannes stadig." + "value": "Ignorerer gentagne rapporter inden for dette tidsrum om en fil, hvis størrelse og ændringstidspunkt ikke er ændret. Slettede filer og filer med en ny størrelse eller et nyt ændringstidspunkt scannes stadig." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/de.json b/web/src/locales/de.json index 3750eebf48f..7980ae13cb2 100644 --- a/web/src/locales/de.json +++ b/web/src/locales/de.json @@ -67083,7 +67083,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignoriert wiederholte Meldungen einer unveränderten Datei innerhalb dieses Zeitfensters. Geänderte oder gelöschte Dateien werden weiterhin gescannt." + "value": "Ignoriert wiederholte Meldungen innerhalb dieses Zeitfensters für eine Datei, deren Größe und Änderungszeit sich nicht geändert haben. Gelöschte Dateien und Dateien mit neuer Größe oder Änderungszeit werden weiterhin gescannt." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/el.json b/web/src/locales/el.json index 55687f36f84..42c972d18ee 100644 --- a/web/src/locales/el.json +++ b/web/src/locales/el.json @@ -67571,7 +67571,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Αγνοεί τις επαναλαμβανόμενες αναφορές για ένα αμετάβλητο αρχείο μέσα σε αυτό το χρονικό διάστημα. Τα αρχεία που άλλαξαν ή διαγράφηκαν σαρώνονται κανονικά." + "value": "Αγνοεί τις επαναλαμβανόμενες αναφορές μέσα σε αυτό το χρονικό διάστημα για ένα αρχείο του οποίου το μέγεθος και ο χρόνος τροποποίησης δεν έχουν αλλάξει. Τα αρχεία που διαγράφηκαν, καθώς και τα αρχεία με νέο μέγεθος ή χρόνο τροποποίησης, σαρώνονται κανονικά." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/en-XA.json b/web/src/locales/en-XA.json index 1275e126269..c13859286b1 100644 --- a/web/src/locales/en-XA.json +++ b/web/src/locales/en-XA.json @@ -73491,7 +73491,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "⟦Îĝñöŕéš ŕéþéåţ ŕéþöŕţš öƒ åñ ûñçĥåñĝéđ ƒîļé ŵîţĥîñ ţĥîš ŵîñđöŵ. Çĥåñĝéđ öŕ đéļéţéđ ƒîļéš åŕé šţîļļ šçåññéđ.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~⟧" + "value": "⟦Îĝñöŕéš ŕéþéåţ ŕéþöŕţš ŵîţĥîñ ţĥîš ŵîñđöŵ ƒöŕ å ƒîļé ŵĥöšé šîžé åñđ ɱöđîƒîçåţîöñ ţîɱé ĥåṽé ñöţ çĥåñĝéđ. Đéļéţéđ ƒîļéš, åñđ ƒîļéš ŵîţĥ å ñéŵ šîžé öŕ ɱöđîƒîçåţîöñ ţîɱé, åŕé šţîļļ šçåññéđ.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~⟧" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/en.json b/web/src/locales/en.json index cb1b01d89e6..dc3ff323561 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -67339,7 +67339,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignores repeat reports of an unchanged file within this window. Changed or deleted files are still scanned." + "value": "Ignores repeat reports within this window for a file whose size and modification time have not changed. Deleted files, and files with a new size or modification time, are still scanned." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/es.json b/web/src/locales/es.json index 53cb1697c46..38fc1b19633 100644 --- a/web/src/locales/es.json +++ b/web/src/locales/es.json @@ -74509,7 +74509,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignora los avisos repetidos de un archivo sin cambios dentro de esta ventana. Los archivos modificados o eliminados se siguen analizando." + "value": "Ignora los avisos repetidos dentro de esta ventana para un archivo cuyo tamaño y fecha de modificación no han cambiado. Los archivos eliminados y los que tienen un tamaño o una fecha de modificación nuevos se siguen analizando." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/et.json b/web/src/locales/et.json index e60e5007c40..794bb061421 100644 --- a/web/src/locales/et.json +++ b/web/src/locales/et.json @@ -67899,7 +67899,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Eirab selle ajavahemiku jooksul muutmata faili korduvaid teateid. Muudetud või kustutatud failid skannitakse siiski." + "value": "Eirab selle ajavahemiku jooksul korduvaid teateid faili kohta, mille suurus ja muutmisaeg pole muutunud. Kustutatud failid ning uue suuruse või muutmisajaga failid skannitakse siiski." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/fi.json b/web/src/locales/fi.json index d0552e24158..c48abb34878 100644 --- a/web/src/locales/fi.json +++ b/web/src/locales/fi.json @@ -67327,7 +67327,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ohittaa muuttumattoman tiedoston toistuvat ilmoitukset tämän aikaikkunan sisällä. Muuttuneet tai poistetut tiedostot skannataan silti." + "value": "Ohittaa tämän aikaikkunan sisällä toistuvat ilmoitukset tiedostosta, jonka koko ja muokkausaika eivät ole muuttuneet. Poistetut tiedostot sekä tiedostot, joiden koko tai muokkausaika on muuttunut, skannataan silti." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/fr.json b/web/src/locales/fr.json index 29df5a2d2ea..5de688ab74e 100644 --- a/web/src/locales/fr.json +++ b/web/src/locales/fr.json @@ -74277,7 +74277,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignore les signalements répétés d’un fichier inchangé dans cet intervalle. Les fichiers modifiés ou supprimés sont toujours analysés." + "value": "Ignore les signalements répétés dans cet intervalle pour un fichier dont la taille et la date de modification n’ont pas changé. Les fichiers supprimés, ainsi que ceux dont la taille ou la date de modification a changé, sont toujours analysés." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/he.json b/web/src/locales/he.json index b367f69f007..03a90138b6f 100644 --- a/web/src/locales/he.json +++ b/web/src/locales/he.json @@ -73837,7 +73837,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "מתעלם מדיווחים חוזרים על קובץ שלא השתנה בתוך חלון הזמן הזה. קבצים שהשתנו או נמחקו עדיין נסרקים." + "value": "התעלמות מדיווחים חוזרים בתוך חלון הזמן הזה על קובץ שהגודל ומועד השינוי שלו נשארו כפי שהיו. קבצים שנמחקו, וקבצים עם גודל או מועד שינוי חדשים, עדיין נסרקים." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/hi.json b/web/src/locales/hi.json index 997e8c6056d..5d4b261dc22 100644 --- a/web/src/locales/hi.json +++ b/web/src/locales/hi.json @@ -66963,7 +66963,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "इस अवधि में बिना बदली फ़ाइल की दोबारा आने वाली रिपोर्ट को अनदेखा करता है। बदली गई या मिटाई गई फ़ाइलें फिर भी स्कैन होती हैं।" + "value": "अगर किसी फ़ाइल का साइज़ और बदलाव का समय नहीं बदला है, तो इस अवधि के अंदर उसकी दोबारा आने वाली रिपोर्ट को अनदेखा करता है। मिटाई गई फ़ाइलें, और नए साइज़ या बदलाव के समय वाली फ़ाइलें, फिर भी स्कैन होती हैं।" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/hr.json b/web/src/locales/hr.json index 878bf645e65..38f62a13859 100644 --- a/web/src/locales/hr.json +++ b/web/src/locales/hr.json @@ -74625,7 +74625,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Zanemaruje ponovljene prijave nepromijenjene datoteke unutar ovog razdoblja. Promijenjene ili izbrisane datoteke i dalje se skeniraju." + "value": "Unutar ovog razdoblja zanemaruje ponovljene prijave za datoteku čija se veličina i vrijeme izmjene nisu promijenili. Izbrisane datoteke i datoteke s novom veličinom ili vremenom izmjene i dalje se skeniraju." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/hu.json b/web/src/locales/hu.json index 00484bb449e..bd9029bec2d 100644 --- a/web/src/locales/hu.json +++ b/web/src/locales/hu.json @@ -67091,7 +67091,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ezen az időablakon belül figyelmen kívül hagyja a változatlan fájlról érkező ismételt jelentéseket. A módosított vagy törölt fájlok átvizsgálása továbbra is megtörténik." + "value": "Ezen az időablakon belül figyelmen kívül hagyja az ismételt jelentéseket olyan fájl esetén, amelynek mérete és módosítási ideje nem változott. A törölt fájlokat, valamint az új méretű vagy új módosítási idejű fájlokat továbbra is átvizsgálja." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/id.json b/web/src/locales/id.json index 20a12c74784..7e0551123a0 100644 --- a/web/src/locales/id.json +++ b/web/src/locales/id.json @@ -60168,7 +60168,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Mengabaikan laporan berulang untuk file yang tidak berubah dalam rentang waktu ini. File yang berubah atau dihapus tetap dipindai." + "value": "Mengabaikan laporan berulang dalam rentang waktu ini untuk file yang ukuran dan waktu modifikasinya tidak berubah. File yang dihapus, serta file dengan ukuran atau waktu modifikasi baru, tetap dipindai." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/it.json b/web/src/locales/it.json index 223e6816e55..6b4a62fb0ba 100644 --- a/web/src/locales/it.json +++ b/web/src/locales/it.json @@ -74377,7 +74377,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignora le segnalazioni ripetute di un file invariato entro questo intervallo. I file modificati o eliminati vengono comunque analizzati." + "value": "Ignora le segnalazioni ripetute entro questo intervallo per un file di cui dimensioni e data di modifica non sono cambiate. I file eliminati e quelli con nuove dimensioni o una nuova data di modifica vengono comunque analizzati." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ja.json b/web/src/locales/ja.json index 85d301440b0..9edc1cd0d76 100644 --- a/web/src/locales/ja.json +++ b/web/src/locales/ja.json @@ -60288,7 +60288,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "この期間内に変更のないファイルが繰り返し報告された場合は無視します。変更または削除されたファイルは引き続きスキャンされます。" + "value": "サイズと更新日時が変わっていないファイルについて、この期間内に繰り返し届いた報告を無視します。削除されたファイルや、サイズまたは更新日時が変わったファイルは引き続きスキャンされます。" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/keys.ts b/web/src/locales/keys.ts index 21c9d07a086..e166d46f0e9 100644 --- a/web/src/locales/keys.ts +++ b/web/src/locales/keys.ts @@ -1,4 +1,4 @@ -// Generated by silo-translations 2026.12.04-0b3cec1 from catalog/*.arb; do not edit. +// Generated by silo-translations 2026.12.05-1ec18ef from catalog/*.arb; do not edit. export type MessageKey = | "bufferingQuality.autoLimited" diff --git a/web/src/locales/ko.json b/web/src/locales/ko.json index 0a13cea9588..b4d7ded6c2e 100644 --- a/web/src/locales/ko.json +++ b/web/src/locales/ko.json @@ -60692,7 +60692,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "이 시간 안에 변경되지 않은 파일이 반복 보고되면 무시해요. 변경되거나 삭제된 파일은 그대로 스캔해요." + "value": "크기와 수정 시간이 바뀌지 않은 파일이 이 시간 안에 반복 보고되면 무시해요. 삭제된 파일과 크기나 수정 시간이 바뀐 파일은 그대로 스캔해요." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/lt.json b/web/src/locales/lt.json index f160ad87a93..51bf55744c9 100644 --- a/web/src/locales/lt.json +++ b/web/src/locales/lt.json @@ -82746,7 +82746,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Per šį laikotarpį nepaisoma pakartotinių pranešimų apie nepakitusį failą. Pakeisti ar ištrinti failai vis tiek nuskaitomi." + "value": "Per šį laikotarpį nepaisoma pakartotinių pranešimų apie failą, kurio dydis ir keitimo laikas nepasikeitė. Ištrinti failai ir failai, kurių dydis ar keitimo laikas pasikeitė, vis tiek nuskaitomi." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/lv.json b/web/src/locales/lv.json index 483fe16e7ad..a42f07d6ea0 100644 --- a/web/src/locales/lv.json +++ b/web/src/locales/lv.json @@ -75696,7 +75696,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Šajā intervālā ignorē atkārtotus ziņojumus par nemainītu failu. Mainīti vai dzēsti faili joprojām tiek skenēti." + "value": "Šajā laika intervālā ignorē atkārtotus ziņojumus par failu, kura lielums un modificēšanas laiks nav mainījušies. Dzēsti faili un faili ar jaunu lielumu vai modificēšanas laiku joprojām tiek skenēti." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ms.json b/web/src/locales/ms.json index 71fb1bdd016..91db9f19e21 100644 --- a/web/src/locales/ms.json +++ b/web/src/locales/ms.json @@ -60156,7 +60156,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Mengabaikan laporan berulang bagi fail yang tidak berubah dalam tetingkap ini. Fail yang berubah atau dipadam tetap diimbas." + "value": "Mengabaikan laporan berulang dalam tetingkap ini bagi fail yang saiz dan masa pengubahsuaiannya tidak berubah. Fail yang dipadam, dan fail dengan saiz atau masa pengubahsuaian baharu, tetap diimbas." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/nb.json b/web/src/locales/nb.json index 1bed72661bb..f01ec0b4be6 100644 --- a/web/src/locales/nb.json +++ b/web/src/locales/nb.json @@ -67303,7 +67303,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignorerer gjentatte rapporter om en uendret fil innenfor dette tidsvinduet. Endrede eller slettede filer skannes fortsatt." + "value": "Ignorerer gjentatte rapporter innenfor dette tidsvinduet for en fil der størrelsen og endringstidspunktet ikke har endret seg. Slettede filer og filer med ny størrelse eller nytt endringstidspunkt skannes fortsatt." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/nl.json b/web/src/locales/nl.json index 81f2050f1e5..5648563f38b 100644 --- a/web/src/locales/nl.json +++ b/web/src/locales/nl.json @@ -66987,7 +66987,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Negeert herhaalde meldingen van een ongewijzigd bestand binnen dit tijdvenster. Gewijzigde of verwijderde bestanden worden nog steeds gescand." + "value": "Negeert herhaalde meldingen binnen dit tijdvenster voor een bestand waarvan de grootte en wijzigingstijd niet zijn veranderd. Verwijderde bestanden en bestanden met een nieuwe grootte of wijzigingstijd worden nog steeds gescand." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/pl.json b/web/src/locales/pl.json index 22807a41bb9..93db5dee069 100644 --- a/web/src/locales/pl.json +++ b/web/src/locales/pl.json @@ -82657,7 +82657,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Pomija powtórne zgłoszenia niezmienionego pliku w tym oknie czasowym. Zmienione lub usunięte pliki są nadal skanowane." + "value": "W tym oknie czasowym pomija powtórne zgłoszenia pliku, którego rozmiar i czas modyfikacji się nie zmieniły. Usunięte pliki oraz pliki o nowym rozmiarze lub czasie modyfikacji są nadal skanowane." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/pt-BR.json b/web/src/locales/pt-BR.json index 4550a7b1006..1b8ca9f03aa 100644 --- a/web/src/locales/pt-BR.json +++ b/web/src/locales/pt-BR.json @@ -74593,7 +74593,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignora relatos repetidos de um arquivo inalterado dentro desta janela. Arquivos alterados ou excluídos ainda são verificados." + "value": "Ignora relatos repetidos dentro desta janela para um arquivo cujo tamanho e data de modificação não mudaram. Arquivos excluídos e arquivos com novo tamanho ou nova data de modificação ainda são verificados." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/pt-PT.json b/web/src/locales/pt-PT.json index d6bbee38bd6..fff20013b58 100644 --- a/web/src/locales/pt-PT.json +++ b/web/src/locales/pt-PT.json @@ -74805,7 +74805,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignora relatórios repetidos de um ficheiro inalterado dentro deste intervalo. Os ficheiros alterados ou eliminados continuam a ser analisados." + "value": "Ignora relatórios repetidos dentro deste intervalo para um ficheiro cujo tamanho e data de modificação não se alteraram. Os ficheiros eliminados e os ficheiros com um novo tamanho ou data de modificação continuam a ser analisados." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ro.json b/web/src/locales/ro.json index 00b4f1bcfde..60a208f9608 100644 --- a/web/src/locales/ro.json +++ b/web/src/locales/ro.json @@ -74613,7 +74613,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignoră raportările repetate ale unui fișier nemodificat în acest interval. Fișierele modificate sau șterse sunt scanate în continuare." + "value": "Ignoră raportările repetate din acest interval pentru un fișier a cărui dimensiune și oră de modificare nu s-au schimbat. Fișierele șterse și fișierele cu o dimensiune nouă sau o oră de modificare nouă sunt scanate în continuare." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/ru.json b/web/src/locales/ru.json index 1987df72150..1b5498f2c78 100644 --- a/web/src/locales/ru.json +++ b/web/src/locales/ru.json @@ -82896,7 +82896,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Игнорирует повторные сообщения о неизменённом файле в течение этого интервала. Изменённые и удалённые файлы всё равно сканируются." + "value": "Игнорирует повторные сообщения в течение этого интервала, если размер файла и время его изменения не поменялись. Удалённые файлы и файлы с новым размером или временем изменения всё равно сканируются." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/sk.json b/web/src/locales/sk.json index 2a74d27f493..48dec361205 100644 --- a/web/src/locales/sk.json +++ b/web/src/locales/sk.json @@ -82095,7 +82095,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "V tomto časovom okne ignoruje opakované hlásenia o nezmenenom súbore. Zmenené alebo odstránené súbory sa aj tak skenujú." + "value": "V rámci tohto časového okna ignoruje opakované hlásenia o súbore, ktorého veľkosť a čas úpravy sa nezmenili. Odstránené súbory a súbory s novou veľkosťou alebo časom úpravy sa aj tak skenujú." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/sl.json b/web/src/locales/sl.json index 90523603c42..34e5ec80864 100644 --- a/web/src/locales/sl.json +++ b/web/src/locales/sl.json @@ -81878,7 +81878,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Prezre ponovljena poročila o nespremenjeni datoteki v tem časovnem oknu. Spremenjene ali izbrisane datoteke se še vedno pregledajo." + "value": "V tem časovnem oknu prezre ponovljena poročila za datoteko, katere velikost in čas spremembe se nista spremenila. Izbrisane datoteke ter datoteke z novo velikostjo ali novim časom spremembe se še vedno pregledajo." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/sv.json b/web/src/locales/sv.json index 98ffc253626..191da2eb38d 100644 --- a/web/src/locales/sv.json +++ b/web/src/locales/sv.json @@ -67191,7 +67191,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ignorerar upprepade rapporter om en oförändrad fil inom det här tidsfönstret. Ändrade eller raderade filer skannas ändå." + "value": "Ignorerar upprepade rapporter inom det här tidsfönstret för en fil vars storlek och ändringstid inte har ändrats. Raderade filer och filer med ny storlek eller ändringstid skannas ändå." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/th.json b/web/src/locales/th.json index 38f2a9eca49..ab72b7afe80 100644 --- a/web/src/locales/th.json +++ b/web/src/locales/th.json @@ -61220,7 +61220,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "ข้ามรายงานซ้ำของไฟล์ที่ไม่เปลี่ยนแปลงภายในช่วงเวลานี้ แต่ยังคงสแกนไฟล์ที่เปลี่ยนแปลงหรือลบไปแล้วตามปกติ" + "value": "ข้ามรายงานซ้ำภายในช่วงเวลานี้สำหรับไฟล์ที่ขนาดและเวลาแก้ไขไม่เปลี่ยนแปลง ระบบยังคงสแกนไฟล์ที่ลบไปแล้วและไฟล์ที่ขนาดหรือเวลาแก้ไขเปลี่ยนไป" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/tr.json b/web/src/locales/tr.json index 33ea3fc6481..1cdff8e2fa2 100644 --- a/web/src/locales/tr.json +++ b/web/src/locales/tr.json @@ -66727,7 +66727,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Değişmemiş bir dosyanın bu süre içindeki tekrarlanan bildirimlerini yok sayar. Değişen veya silinen dosyalar yine de taranır." + "value": "Boyutu ve değiştirilme zamanı değişmemiş bir dosya için bu süre içindeki tekrarlanan bildirimleri yok sayar. Silinen dosyalar ile boyutu veya değiştirilme zamanı değişen dosyalar yine de taranır." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/uk.json b/web/src/locales/uk.json index 6cf8231ea63..909732ff7c4 100644 --- a/web/src/locales/uk.json +++ b/web/src/locales/uk.json @@ -81870,7 +81870,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Ігнорує повторні повідомлення про незмінений файл у межах цього вікна. Змінені або видалені файли все одно скануються." + "value": "Ігнорує повторні повідомлення в межах цього вікна для файлу, розмір і час зміни якого залишилися тими самими. Видалені файли, а також файли з новим розміром або часом зміни все одно скануються." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json index e2c0629480b..3bffd7fe723 100644 --- a/web/src/locales/vi.json +++ b/web/src/locales/vi.json @@ -67539,7 +67539,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "Bỏ qua các báo cáo lặp lại về một tệp không thay đổi trong khoảng thời gian này. Tệp đã thay đổi hoặc đã xóa vẫn được quét." + "value": "Bỏ qua các báo cáo lặp lại trong khoảng thời gian này đối với tệp có kích thước và thời gian sửa đổi không thay đổi. Tệp đã xóa và tệp có kích thước hoặc thời gian sửa đổi mới vẫn được quét." } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.json index 16c6c8c06fb..19f520ee066 100644 --- a/web/src/locales/zh-Hans.json +++ b/web/src/locales/zh-Hans.json @@ -60700,7 +60700,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "在此时间窗口内忽略对未更改文件的重复报告。已更改或已删除的文件仍会被扫描。" + "value": "对于大小和修改时间均未更改的文件,在此时间窗口内忽略其重复报告。已删除的文件,以及大小或修改时间已更改的文件,仍会被扫描。" } ], "web.admin.settings.autoscan.polling.debounce.label": [ diff --git a/web/src/locales/zh-Hant.json b/web/src/locales/zh-Hant.json index 6818f818570..b9a2a4cc026 100644 --- a/web/src/locales/zh-Hant.json +++ b/web/src/locales/zh-Hant.json @@ -60850,7 +60850,7 @@ "web.admin.settings.autoscan.polling.debounce.description": [ { "type": 0, - "value": "在此時間範圍內略過未變更檔案的重複回報。已變更或已刪除的檔案仍會掃描。" + "value": "在此時間範圍內,若檔案的大小和修改時間都沒有變更,則略過該檔案的重複回報。已刪除的檔案,以及大小或修改時間有變更的檔案,仍會掃描。" } ], "web.admin.settings.autoscan.polling.debounce.label": [