mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add playlist to non auth
This commit is contained in:
@@ -63,7 +63,8 @@ func BasicAuth(accounts gin.Accounts) gin.HandlerFunc {
|
|||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
user, found := pairs.searchCredential(c.Request.Header.Get("Authorization"))
|
user, found := pairs.searchCredential(c.Request.Header.Get("Authorization"))
|
||||||
if !found {
|
if !found {
|
||||||
if strings.HasPrefix(c.FullPath(), "/stream") {
|
if strings.HasPrefix(c.FullPath(), "/stream") ||
|
||||||
|
strings.HasPrefix(c.FullPath(), "/playlist") {
|
||||||
c.Set("not_auth", true)
|
c.Set("not_auth", true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user