mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update stream sorting
This commit is contained in:
parent
33e1928705
commit
7d1a33d242
1 changed files with 2 additions and 2 deletions
|
@ -405,12 +405,12 @@
|
||||||
|
|
||||||
var deviceProfile = self.getDeviceProfile();
|
var deviceProfile = self.getDeviceProfile();
|
||||||
|
|
||||||
var audioStreamIndex = params.AudioStreamIndex == null ? getParameterByName('AudioStreamIndex', currentSrc) : params.AudioStreamIndex;
|
var audioStreamIndex = params.AudioStreamIndex == null ? (getParameterByName('AudioStreamIndex', currentSrc) || null) : params.AudioStreamIndex;
|
||||||
if (typeof (audioStreamIndex) == 'string') {
|
if (typeof (audioStreamIndex) == 'string') {
|
||||||
audioStreamIndex = parseInt(audioStreamIndex);
|
audioStreamIndex = parseInt(audioStreamIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
var subtitleStreamIndex = params.SubtitleStreamIndex == null ? getParameterByName('SubtitleStreamIndex', currentSrc) : params.SubtitleStreamIndex;
|
var subtitleStreamIndex = params.SubtitleStreamIndex == null ? (getParameterByName('SubtitleStreamIndex', currentSrc) || null) : params.SubtitleStreamIndex;
|
||||||
if (typeof (subtitleStreamIndex) == 'string') {
|
if (typeof (subtitleStreamIndex) == 'string') {
|
||||||
subtitleStreamIndex = parseInt(subtitleStreamIndex);
|
subtitleStreamIndex = parseInt(subtitleStreamIndex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue