Files
silo-server/internal/models/marker_source.go
T
Silo Server Migration 04a7e8c82d Add online marker support for recap and preview segments
- Wire introdb marker fetching into playback and Jellyfin compat
- Persist and expose recap/preview markers alongside intro and credits
- Add new playback/profile settings for recap and preview behavior
2026-05-23 23:48:25 -04:00

27 lines
516 B
Go

package models
const (
MarkerSourceScanner = "scanner"
MarkerSourceS3 = "s3"
MarkerSourceOnline = "online"
MarkerSourcePlugin = "plugin"
MarkerSourceManual = "manual"
)
// MarkerSourcePriority returns a higher value for stronger marker sources.
func MarkerSourcePriority(source string) int {
switch source {
case MarkerSourceManual:
return 4
case MarkerSourcePlugin, MarkerSourceOnline:
return 3
case MarkerSourceS3:
return 2
case MarkerSourceScanner:
return 1
default:
return 0
}
}