diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/VideoManager.java b/app/src/main/java/org/jellyfin/androidtv/ui/playback/VideoManager.java index 93588a8e9a..ddf9327f2c 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/VideoManager.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/VideoManager.java @@ -415,7 +415,11 @@ public int getExoPlayerTrack(@Nullable org.jellyfin.sdk.model.api.MediaStreamTyp if (trackFormat.id != null) { int id; try { - id = Integer.parseInt(trackFormat.id); + if (trackFormat.id.contains(":")) { + id = Integer.parseInt(trackFormat.id.split(":")[1]); + } else { + id = Integer.parseInt(trackFormat.id); + } } catch (NumberFormatException e) { Timber.d("failed to parse track ID [%s]", trackFormat.id); break; @@ -483,7 +487,11 @@ public boolean setExoPlayerTrack(int index, @Nullable org.jellyfin.sdk.model.api int id; try { - id = Integer.parseInt(trackFormat.id); + if (trackFormat.id.contains(":")) { + id = Integer.parseInt(trackFormat.id.split(":")[1]); + } else { + id = Integer.parseInt(trackFormat.id); + } if (id != exoTrackID) continue; } catch (NumberFormatException e) {