Skip to content

Use MPEG-DASH manifest for audio only playback - #1502

Open
willheisenberg wants to merge 1 commit into
anxdpanic:masterfrom
willheisenberg:audio-only-mpd
Open

willheisenberg wants to merge 1 commit into
anxdpanic:masterfrom
willheisenberg:audio-only-mpd

Conversation

@willheisenberg

Copy link
Copy Markdown

Problem

With Play audio only (audio_only=true or the kodion.audio_only setting) 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:

  • The stream is sorted by the add-on/player language before the original/default flag, so e.g. a German video with an auto-dubbed English track plays in English when the language is en-US.
  • Kodi only receives that one stream, so the original track cannot be selected afterwards.

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 handle audio_only (video streams are skipped, the video key 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=true via the play URL:

  • Before: only English (US) (auto-dubbed) available and playing.
  • After: German [Original] playing by default, English (US) [Dubbed] selectable.

Related to #1474 (dubbed instead of original audio).

🤖 Generated with Claude Code

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant