Add ISO media scan support

This commit is contained in:
ShukeBta
2026-07-16 12:47:31 +08:00
parent 19381eb270
commit cc056077ee
6 changed files with 42 additions and 12 deletions
+5
View File
@@ -43,9 +43,14 @@ var videoExtensions = map[string]struct{}{
".3gp": {},
".mpg": {},
".mpeg": {},
".iso": {},
".strm": {},
}
func mediaExtensionSupportsProbe(ext string) bool {
return ext != ".strm" && ext != ".iso"
}
// ScannerService walks libraries on disk and upserts model.Media rows.
type ScannerService struct {
cfg *config.Config