Skip to content

Commit 0a55954

Browse files
committed
perfect: 优化 AlistStrm 在未映射文件时的处理行为
1 parent d4d06d4 commit 0a55954

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

internal/handler/playbackInfo.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ func processAlistStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, it
7979
jsonChain.Set(
8080
bsePath+"Container",
8181
container,
82+
).Set(
83+
bsePath+"SupportsDirectStream",
84+
true,
8285
)
86+
8387
msgs = append(msgs, fmt.Sprintf("容器为: %s", container))
8488

8589
if !config.AlistStrm.Proxy {
8690
jsonChain.Set(
87-
bsePath+"SupportsDirectStream",
88-
false,
89-
).Set(
9091
bsePath+"SupportsTranscoding",
9192
false,
9293
).Delete(
@@ -98,9 +99,9 @@ func processAlistStrmPlaybackInfo(jsonChain *utils.JsonChain, bsePath string, it
9899
).Delete(
99100
bsePath + "TrancodeLiveStartIndex",
100101
)
101-
msgs = append(msgs, "禁止串流/转码行为")
102+
msgs = append(msgs, "禁止转码行为")
102103
} else {
103-
msgs = append(msgs, "保持原有串流/转码行为")
104+
msgs = append(msgs, "保持原有转码行为")
104105
}
105106

106107
if directStreamURL != nil {

0 commit comments

Comments
 (0)