mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 03:35:07 +01:00
update comments
This commit is contained in:
parent
bd4378c056
commit
8dcb94d3ae
@ -63,12 +63,15 @@ export function EmbedOption(props: {
|
||||
);
|
||||
}
|
||||
|
||||
// TODO refactor this file: cleanup + reporting
|
||||
|
||||
export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
|
||||
const router = useOverlayRouter(id);
|
||||
const meta = usePlayerStore((s) => s.meta);
|
||||
const setSource = usePlayerStore((s) => s.setSource);
|
||||
const setSourceId = usePlayerStore((s) => s.setSourceId);
|
||||
const progress = usePlayerStore((s) => s.progress.time);
|
||||
|
||||
const sourceName = useMemo(() => {
|
||||
if (!sourceId) return "...";
|
||||
const sourceMeta = providers.getMetadata(sourceId);
|
||||
@ -81,6 +84,7 @@ export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
|
||||
id: sourceId,
|
||||
media: scrapeMedia,
|
||||
});
|
||||
|
||||
if (result.stream) {
|
||||
setSource(convertRunoutputToSource({ stream: result.stream }), progress);
|
||||
setSourceId(sourceId);
|
||||
|
@ -12,7 +12,6 @@ export interface EmpheralVolumeStore {
|
||||
setShowVolume(v: boolean): void;
|
||||
}
|
||||
|
||||
// TODO add migration from previous stored volume
|
||||
export const useVolumeStore = create(
|
||||
persist(
|
||||
immer<VolumeStore>((set) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user