Commit Graph

7 Commits

Author SHA1 Message Date
Uruk
da3654ec4a fix: restore StreamRanker for cross-episode track matching
Removing StreamRanker reduced track matching to direct index reuse. When a
next episode has a different audio/subtitle track layout (common with anime
multi-sub releases or mixed sources), the stored index points at the wrong
track. StreamRanker scores by codec/language/title/relative index and only
applies a match above threshold, otherwise falls back to media defaults.

Restores utils/streamRanker.ts and its use in getDefaultPlaySettings so the
cleanup PR stays behavior-preserving for playback.
2026-05-22 01:43:40 +02:00
Uruk
f543fa9e3e refactor: remove unused code and simplify implementations
Removes extensive dead code including unused components, utilities, and augmentations that were no longer referenced in the codebase.

Simplifies play settings logic by removing complex stream ranking algorithm in favor of direct previous index matching for audio and subtitle selections.

Removes aspectRatio prop from video player as it was set to a constant "default" value and never changed.

Inlines POSTER_CAROUSEL_HEIGHT constant directly where used instead of importing from centralized constants file.

Eliminates unused features including image color extraction for TV platforms, M3U8 subtitle parsing, and various Jellyfin API helpers that were no longer needed.

Cleans up credential management by making internal helper functions private that should not be exposed to external consumers.
2026-01-12 11:04:23 +01:00
Ahmed Sbai
b9bb109f4a chore: linting fixes && github actions for linting (#612) 2025-03-31 07:44:10 +02:00
lostb1t
92513e234f chore: Apply linting rules and add git hok (#611)
Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
2025-03-16 18:01:12 +01:00
Alex Kim
35fcb5ca0c Completed subtitle feature 2024-12-12 04:23:09 +11:00
Alex Kim
3fb20a8ca2 Revamped transcoding subtitles 2024-12-12 02:41:30 +11:00
Alex Kim
1d0d99c79b Added stream ranker class 2024-12-11 06:02:13 +11:00