Skip to content

Commit d10005b

Browse files
committed
fix languages
1 parent 0ea5f62 commit d10005b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Controllers/ApiController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,18 @@ void UpdateTitle()
566566
List<ffStream> FFprobe(TorrentDetails t, out HashSet<string> langs)
567567
{
568568
langs = t.languages;
569+
569570
if (t.ffprobe != null || !AppInit.conf.tracks)
571+
{
572+
langs = TracksDB.Languages(t, t.ffprobe);
570573
return t.ffprobe;
574+
}
571575

572576
var streams = TracksDB.Get(t.magnet, t.types);
577+
langs = TracksDB.Languages(t, streams ?? t.ffprobe);
573578
if (streams == null)
574579
return null;
575580

576-
langs = TracksDB.Languages(t, streams);
577581
return streams;
578582
}
579583
#endregion

0 commit comments

Comments
 (0)