Fix cloud playback and organize ingest pipeline

This commit is contained in:
ShukeBta
2026-06-13 23:21:56 +08:00
parent 4b2839d753
commit 52b772ea45
18 changed files with 729 additions and 22 deletions
@@ -79,3 +79,11 @@ func TestCloudResolveHotCacheRefreshesInBackground(t *testing.T) {
t.Fatalf("refreshed link = %s, want second URL", link.URL)
}
}
func TestCloudResolveCacheTTLUsesShortTTLForCloudPlaybackLinks(t *testing.T) {
for _, typ := range []string{"quark", "cloud115", "clouddrive2", "openlist"} {
if got := cloudResolveCacheTTL(typ); got != 2*time.Minute {
t.Fatalf("%s cloud resolve cache ttl = %v, want 2m", typ, got)
}
}
}