Automatic media analysis for new items
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user