Skip to content

Add Emby remote subtitle search and download flow - #2091

Closed
Bockiii wants to merge 7 commits into
edde746:mainfrom
Bockiii:emby_subtitle_download
Closed

Bockiii wants to merge 7 commits into
edde746:mainfrom
Bockiii:emby_subtitle_download

Conversation

@Bockiii

@Bockiii Bockiii commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Emby subtitle search/download support and wires it through the existing subtitle controls flow.

This also generalizes the previous Plex-only subtitle search path into a backend-neutral model/API so Plex and Emby can use the same UI and apply pipeline.

What changed

  • added Emby remote subtitle search via /Items/{id}/RemoteSearch/Subtitles/{language}
  • added Emby subtitle download support via the remote subtitle download endpoint
  • added post-download apply handling for Emby, including use of NewIndex when the server returns it
  • generalized subtitle search result handling from Plex-specific to shared subtitle DTOs
  • extended the media client interface with shared subtitle search/download/source-track hooks
  • updated Plex to use the shared subtitle search abstractions
  • gated subtitle search visibility for Emby using user policy flags
  • updated track controls/search sheet flow to work against backend capabilities instead of Plex-only assumptions

Notes

  • TEMPFORDEV and debugging-only instrumentation were removed and are not part of this change.
  • The remaining diff is only product code for the subtitle feature.
  • The Emby capability gate now follows the explicit subtitle policy flags instead of Premiere heuristics.

Validation

  • verified Linux build/debug runs during implementation
  • validated touched files with flutter analyze
  • manually tested Emby subtitle search and download flow
  • confirmed downloaded subtitles appear in Emby and in Plezy
  • confirmed subtitle search gating behavior follows current server policy responses

Follow-up / caveat

The visibility gate now intentionally trusts Emby’s subtitle policy flags (EnableSubtitleDownloading / EnableSubtitleManagement). If a non-Premiere server reports those as enabled, Plezy will expose subtitle search accordingly because no stronger Premiere-specific signal was found.

@Bockiii

Bockiii commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Well... this PR started yesterday, before you reworked the plex subtitle handling and took care of the caching/selection error that I have also fixed with this. Not sure what to do now.

@Bockiii

Bockiii commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

I am reverting all your changes in 8b5ee4f as i've already implemented that fix in my unified solution

@Bockiii
Bockiii marked this pull request as draft August 24, 2026 09:11
@Bockiii
Bockiii force-pushed the emby_subtitle_download branch from daa2d51 to 1e360ef Compare August 24, 2026 09:28
@Bockiii
Bockiii force-pushed the emby_subtitle_download branch from 1e360ef to 516d4e7 Compare August 24, 2026 09:30
@Bockiii

Bockiii commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Alright, the plex-fix of yours threw a little spanner in the works, but it should all work now. I've tested this in the linux and the windows client.

emby_subtitles.webm
plex_subtitles.webm

This is a test on linux client with plex and emby (with premiere).

After squashing the chaotic commits, it should be good to go :)

@Bockiii
Bockiii marked this pull request as ready for review August 24, 2026 11:44
@Bockiii

Bockiii commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

FYI, I expect the emby guys to probably just send you a lifetime premier key if you send them a message, saying you're the plezy dev.

@Bockiii

Bockiii commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

The longer you wait for merging, the more follow up issues might occur if you change/fix something else with subtitles

snapetech added a commit to snapetech-org/pleazyng that referenced this pull request Oct 25, 2026
Subtitle search moves onto MediaServerClient, so Plex and Emby share the
sheet. Kept main's forceRefresh read for the Plex new-stream poll (and its
test) instead of the PR's cache delete, and made the Emby policy probe lazy
so constructing a client costs no request.

Squash of upstream edde746/plezy PR edde746#2091 by Bockiii, merged into PlezyNG
while it waits upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@edde746

edde746 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Closing this.

  • It reverts the forceRefresh fix the Plex download poll needs, and deletes its test.
  • The apply loop reloads playback repeatedly and adds Emby policy probes on every health check.
  • The shared search contract is in feat(player): offer subtitle search on Jellyfin through its subtitle plugins #2875. Emby support would build on that and needs testing against a Premiere server.
  • It has conflicted with main for months.

@edde746 edde746 closed this Nov 9, 2026
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.

2 participants