bug处理

This commit is contained in:
truewhile
2026-09-08 08:41:01 +08:00
parent b23b1d728e
commit fdfb2ee987
3 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -94,8 +94,8 @@ func appendQueryToHLSSegments(playlist, rawQuery string) string {
if strings.TrimSpace(rawQuery) == "" {
return playlist
}
// Segment fetches only need auth/profile tokens; drop start= so a seek
// restart does not keep forcing EnsureJobFrom on every .ts hit.
// Segment fetches do not need start=, but must keep _seek as a cache-busting
// generation because every transcode restart reuses seg_00000.ts names.
q := filterHLSSegmentQuery(rawQuery)
if q == "" {
return playlist
@@ -131,7 +131,7 @@ func filterHLSSegmentQuery(rawQuery string) string {
key = part[:i]
}
switch strings.ToLower(key) {
case "start", "_seek":
case "start":
continue
}
kept = append(kept, part)