mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-08 15:08:40 +01:00
feat(tv): add live subtitle track refresh after opensubs download
This commit is contained in:
@@ -15,6 +15,7 @@ interface ShowSubtitleModalParams {
|
||||
onSubtitleIndexChange: (index: number) => void;
|
||||
onServerSubtitleDownloaded?: () => void;
|
||||
onLocalSubtitleDownloaded?: (path: string) => void;
|
||||
refreshSubtitleTracks?: () => Promise<MediaStream[]>;
|
||||
}
|
||||
|
||||
export const useTVSubtitleModal = () => {
|
||||
@@ -30,6 +31,7 @@ export const useTVSubtitleModal = () => {
|
||||
onSubtitleIndexChange: params.onSubtitleIndexChange,
|
||||
onServerSubtitleDownloaded: params.onServerSubtitleDownloaded,
|
||||
onLocalSubtitleDownloaded: params.onLocalSubtitleDownloaded,
|
||||
refreshSubtitleTracks: params.refreshSubtitleTracks,
|
||||
});
|
||||
router.push("/(auth)/tv-subtitle-modal");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user