diff --git a/Controllers/ApiController.cs b/Controllers/ApiController.cs index 9396f7b..5298ef4 100644 --- a/Controllers/ApiController.cs +++ b/Controllers/ApiController.cs @@ -566,14 +566,18 @@ void UpdateTitle() List FFprobe(TorrentDetails t, out HashSet langs) { langs = t.languages; + if (t.ffprobe != null || !AppInit.conf.tracks) + { + langs = TracksDB.Languages(t, t.ffprobe); return t.ffprobe; + } var streams = TracksDB.Get(t.magnet, t.types); + langs = TracksDB.Languages(t, streams ?? t.ffprobe); if (streams == null) return null; - langs = TracksDB.Languages(t, streams); return streams; } #endregion