Update SubtitleApi.cs

This commit is contained in:
Zoe Roux 2020-12-19 22:27:33 +01:00
parent dfd6f3e28e
commit 54b1aa9ba6

View File

@ -28,7 +28,7 @@ namespace Kyoo.Api
Track subtitle; Track subtitle;
try try
{ {
subtitle = await _libraryManager.GetTrack(slug); subtitle = await _libraryManager.GetTrack(slug, StreamType.Subtitle);
} }
catch (ArgumentException ex) catch (ArgumentException ex)
{ {
@ -152,4 +152,4 @@ namespace Kyoo.Api
return lines; return lines;
} }
} }
} }