node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
package troubleshooter
import (
"strings"
)
func mpvRules() *RuleBuilder {
return NewRule("MPV Player").
Desc("Rules for detecting MPV player related issues").
ModuleIs(ModuleMediaPlayer).
LevelIs(LevelError).
Branch().
When(func(l LogLine) bool {
return strings.Contains(l.Message, "Could not open and play video using MPV")
}, "MPV player failed to open video").
Then(
"Seanime cannot communicate with MPV",
"Go to the settings and set the correct application path for MPV",
).
WithSeverity("error").
Branch().
When(func(l LogLine) bool {
return strings.Contains(l.Message, "fork/exec")
}, "MPV player process failed to start").
Then(
"The MPV player process failed to start",
"Check if MPV is installed correctly and the application path is valid",
).
WithSeverity("error")
}