Skip to content

Commit

Permalink
fix languages
Browse files Browse the repository at this point in the history
  • Loading branch information
immisterio committed Jan 29, 2024
1 parent 0ea5f62 commit d10005b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,18 @@ void UpdateTitle()
List<ffStream> FFprobe(TorrentDetails t, out HashSet<string> 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
Expand Down

0 comments on commit d10005b

Please sign in to comment.