refactor: remove unused constants and fields
This commit is contained in:
@@ -21,8 +21,6 @@ var (
|
|||||||
ErrNotAuthenticated = errors.New("not authenticated")
|
ErrNotAuthenticated = errors.New("not authenticated")
|
||||||
)
|
)
|
||||||
|
|
||||||
const bcryptCost = 12
|
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
db db.Querier
|
db db.Querier
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ type Service struct {
|
|||||||
db db.Querier
|
db db.Querier
|
||||||
proxyTokens *proxyTokenSigner
|
proxyTokens *proxyTokenSigner
|
||||||
proxyHostCache *lru.Cache[string, proxyHostCacheItem]
|
proxyHostCache *lru.Cache[string, proxyHostCacheItem]
|
||||||
|
|
||||||
cacheMu sync.RWMutex
|
|
||||||
showResolution *lru.Cache[int, showResolutionCacheItem]
|
showResolution *lru.Cache[int, showResolutionCacheItem]
|
||||||
playbackDataCache *lru.Cache[string, playbackDataCacheItem]
|
playbackDataCache *lru.Cache[string, playbackDataCacheItem]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,10 +87,6 @@ var providerPriority = map[string]int{
|
|||||||
"ss-hls": 30,
|
"ss-hls": 30,
|
||||||
}
|
}
|
||||||
|
|
||||||
var sourceQualityDefaults = map[string]int{
|
|
||||||
"auto": 240,
|
|
||||||
}
|
|
||||||
|
|
||||||
func lookupPriority(m map[string]int, key string, fallback int) int {
|
func lookupPriority(m map[string]int, key string, fallback int) int {
|
||||||
if p, ok := m[strings.ToLower(key)]; ok {
|
if p, ok := m[strings.ToLower(key)]; ok {
|
||||||
return p
|
return p
|
||||||
|
|||||||
Reference in New Issue
Block a user