Repository navigation
Use MPEG-DASH manifest for audio only playback - #1502
Open
willheisenberg wants to merge 1 commit into
Open
willheisenberg wants to merge 1 commit into
willheisenberg wants to merge 1 commit into
Conversation
Audio only playback skipped the manifest and played a single stream, selected by language before the original track, with no other track to switch to. Build an audio only manifest instead, as already prepared in _generate_mpd_manifest. Co-Authored-By: Claude Opus 5.5 <[email protected]>
willheisenberg
added a commit
to willheisenberg/KodiMediaBot
that referenced
this pull request
Nov 7, 2026
With audio_only the add-on 7.4.4 plays one stream picked by its own language, so a German video plays machine-dubbed in English with no track to switch to. Two lines in player_client.py let it build an audio only MPEG-DASH manifest with the original track and all others (anxdpanic/plugin.video.youtube#1502). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With Play audio only (
audio_only=trueor thekodion.audio_onlysetting) the add-on never builds its MPEG-DASH manifest and plays a single progressive/adaptive audio stream instead. For videos with dubbed audio tracks that has two effects:en-US.The same video played normally (with MPEG-DASH) starts with the original track and offers all tracks.
Change
Build the MPEG-DASH manifest for audio-only playback as well.
_process_adaptive_streams()and_get_stream_format()already handleaudio_only(video streams are skipped, thevideokey is removed), and_generate_mpd_manifest()already contains the matching condition as a commented-out line, which this enables. The manifest (9999) sorts above the progressive streams, so it is chosen when available; without a manifest the progressive streams are still used as before.Tested
Kodi 21 / LibreELEC 12.2.1 on a Raspberry Pi 5, add-on v7.4.4,
audio_only=truevia the play URL:English (US)(auto-dubbed) available and playing.German [Original]playing by default,English (US) [Dubbed]selectable.Related to #1474 (dubbed instead of original audio).
🤖 Generated with Claude Code