Skip to content

Commit acb41de

Browse files
committed
fix: remove hardcoded subtitle oang
1 parent 41e938b commit acb41de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Providers/SubtitleProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ CancellationToken ct
5858
&& cached is not null
5959
)
6060
{
61-
_log.LogInformation("Subtitle list cache HIT key={Key}", listKey);
61+
_log.LogDebug("Subtitle list cache HIT key={Key}", listKey);
6262
return cached;
6363
}
6464

65-
_log.LogInformation("Subtitle list cache MISS key={Key}", listKey);
65+
_log.LogDebug("Subtitle list cache MISS key={Key}", listKey);
6666

6767
var cfg = GelatoPlugin.Instance!.GetConfig(Guid.Empty);
6868
var subs = await cfg.Stremio!.GetSubtitlesAsync(id, mediaType).ConfigureAwait(false);
@@ -247,7 +247,7 @@ CancellationToken cancellationToken
247247
{
248248
Format = GuessSubtitleCodec(sub.Url),
249249
Stream = ms,
250-
Language = "en",
250+
Language = sub.LangCode ?? sub.Lang,
251251
};
252252
}
253253

0 commit comments

Comments
 (0)