fix: audio stream cache key, code fmt

This commit is contained in:
ThetaDev 2023-05-01 00:04:04 +02:00
parent 4e837e838d
commit 22671ca16c
4 changed files with 12 additions and 6 deletions

View file

@ -161,6 +161,11 @@ public interface PlaybackResolver extends Resolver<StreamInfo, MediaSource> {
cacheKey.append(audioStream.getAudioTrackId());
}
if (audioStream.getAudioLocale() != null) {
cacheKey.append(" ");
cacheKey.append(audioStream.getAudioLocale().getISO3Language());
}
return cacheKey.toString();
}