Skip to content

Add subtitle to currently playing Kodi video#483

Merged
LivingWithHippos merged 2 commits into
LivingWithHippos:masterfrom
ElCruncharino:feat/kodi-add-subtitle
Jul 11, 2026
Merged

Add subtitle to currently playing Kodi video#483
LivingWithHippos merged 2 commits into
LivingWithHippos:masterfrom
ElCruncharino:feat/kodi-add-subtitle

Conversation

@ElCruncharino

Copy link
Copy Markdown
Contributor

Kodi's Player.AddSubtitle JSON-RPC method lets you attach a subtitle to a video that is already playing, instead of having to redownload the video and pick the files together like described in #362.

On the download details screen, files recognized as subtitles (srt, vtt, sub and the other extensions already in the icon map) now show an extra "Add subtitle to Kodi" button next to the existing cast buttons. It opens the same service picker dialog used elsewhere, filtered down to Kodi devices since VLC casting does not support this here, and sends the subtitle to whatever is currently playing on the picked device. The active player id is fetched first through Player.GetActivePlayers since AddSubtitle needs it.

Closes #362

Kodi's Player.AddSubtitle JSON-RPC method lets you attach a subtitle to
a video that is already playing, instead of having to cast video and
subtitle together as a fresh Player.Open call. This adds that command
to KodiApi/KodiRepository, fetching the active player id first via
Player.GetActivePlayers since AddSubtitle needs it.

On the download details screen, files recognized as subtitles (srt,
vtt, sub, etc, based on the existing extension icon map) now show an
extra "Add subtitle to Kodi" button next to the existing cast buttons.
It opens the same service picker dialog used elsewhere, filtered down
to Kodi devices since this isn't something VLC casting supports here,
and sends the subtitle to whatever is currently playing on the picked
device.
@LivingWithHippos LivingWithHippos self-requested a review July 11, 2026 11:52
@LivingWithHippos LivingWithHippos merged commit faef2d7 into LivingWithHippos:master Jul 11, 2026
3 checks passed
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.

[FEATURE REQUEST] Merge srt and mkv links when sending to Kodi

2 participants