add VLC authentication workaround

This commit is contained in:
aler9
2021-10-30 14:47:58 +02:00
parent 146b923b1e
commit 1d5f3c92ae
7 changed files with 49 additions and 21 deletions

View File

@@ -20,6 +20,15 @@ const (
serverSessionCheckStreamPeriod = 1 * time.Second
)
func stringsReverseIndex(s, substr string) int {
for i := len(s) - 1 - len(substr); i >= 0; i-- {
if s[i:i+len(substr)] == substr {
return i
}
}
return -1
}
func setupGetTrackIDPathQuery(
url *base.URL,
thMode *headers.TransportMode,