fix: remove duplicate BuildStreamURL function

This commit is contained in:
2026-04-20 16:44:45 +02:00
parent 0745f0e505
commit a49fba220f

View File

@@ -3,7 +3,6 @@ package shared
import (
"encoding/json"
"fmt"
"net/url"
"strconv"
)
@@ -44,13 +43,6 @@ type SkipSegment struct {
End float64 `json:"end"`
}
func BuildStreamURL(mode string, token string) string {
if token == "" {
return ""
}
return fmt.Sprintf("/watch/proxy/stream?mode=%s&token=%s", url.QueryEscape(mode), url.QueryEscape(token))
}
func ModeToken(mode string, modeSources map[string]ModeSource) string {
normalizedMode := mode
if _, ok := modeSources[normalizedMode]; !ok {