Automatic media analysis for new items

This commit is contained in:
Ben Adrian Sarmiento
2024-06-19 00:02:04 +02:00
parent acc9b69b5a
commit 74052e2f67
3 changed files with 25 additions and 8 deletions

View File

@@ -127,10 +127,18 @@ func MainApp(configPath string) {
zurglog,
)
hasFFprobe := true
_, err = exec.LookPath("ffprobe")
if err != nil {
hasFFprobe = false
zurglog.Warn("ffprobe not found in PATH (do you have ffmpeg installed?), you won't be able to perform media analysis")
}
torrentMgr := torrent.NewTorrentManager(
config,
api,
workerPool,
hasFFprobe,
log.Named("manager"),
log.Named("repair"),
)
@@ -148,11 +156,6 @@ func MainApp(configPath string) {
log.Named("router"),
)
_, err = exec.LookPath("ffprobe")
if err != nil {
zurglog.Warn("ffprobe not found in PATH (do you have ffmpeg installed?), you won't be able to perform media analysis")
}
//// pprof
// workerPool.Submit(func() {
// if err := netHttp.ListenAndServe(":6060", nil); err != nil && err != netHttp.ErrServerClosed {