Skip to content

Commit 414e074

Browse files
committed
fix(JellyfinRegexp): 修正 Jellyfin 播放信息正则表达式,确保匹配正确的路径 #47
1 parent dcb5776 commit 414e074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

constants/regexp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var JellyfinRegexp = &JellyfinRegexps{
4646
Router: JellyfinRouterRegexps{
4747
VideosHandler: regexp.MustCompile(`/Videos/\w+/(stream|original)(\.\w+)?$`), // /Videos/813a630bcf9c3f693a2ec8c498f868d2/stream /Videos/205953b114bb8c9dc2c7ba7e44b8024c/stream.mp4
4848
ModifyIndex: regexp.MustCompile(`^/web/$`),
49-
ModifyPlaybackInfo: regexp.MustCompile(`^/Items/\w+$`),
49+
ModifyPlaybackInfo: regexp.MustCompile(`^/Items/\w+/PlaybackInfo$`),
5050
ModifySubtitles: regexp.MustCompile(`/Videos/\d+/\w+/subtitles$`),
5151
},
5252
}

0 commit comments

Comments
 (0)