pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clear embedID and sourceID when switching ep

Pas 583599d6 0ed04966

+7
+2
src/components/player/hooks/usePlayer.ts
··· 37 37 const setCaption = usePlayerStore((s) => s.setCaption); 38 38 const setSourceId = usePlayerStore((s) => s.setSourceId); 39 39 const status = usePlayerStore((s) => s.status); 40 + const setEmbedId = usePlayerStore((s) => (s as any).setEmbedId); 40 41 const shouldStartFromBeginning = usePlayerStore( 41 42 (s) => s.interface.shouldStartFromBeginning, 42 43 ); ··· 66 67 ) { 67 68 const start = startAtOverride ?? getProgress(progressStore.items, meta); 68 69 setCaption(null); 70 + setEmbedId(null); 69 71 setSource(source, captions, start); 70 72 setSourceId(sourceId); 71 73 setStatus(playerStatus.PLAYING);
+1
src/components/player/hooks/useSourceSelection.ts
··· 105 105 106 106 const [request, run] = useAsyncFn(async () => { 107 107 if (!sourceId || !meta) return null; 108 + setEmbedId(null); 108 109 const scrapeMedia = metaToScrapeMedia(meta); 109 110 const providerApiUrl = getLoadbalancedProviderApiUrl(); 110 111
+2
src/stores/player/slices/display.ts
··· 121 121 set((s) => { 122 122 s.status = playerStatus.IDLE; 123 123 s.meta = null; 124 + s.embedId = null; 125 + s.sourceId = null; 124 126 s.thumbnails.images = []; 125 127 s.progress.time = 0; 126 128 s.progress.duration = 0;
+2
src/stores/player/slices/source.ts
··· 162 162 setMeta(meta, newStatus) { 163 163 set((s) => { 164 164 s.meta = meta; 165 + s.embedId = null; 166 + s.sourceId = null; 165 167 s.interface.hideNextEpisodeBtn = false; 166 168 if (newStatus) s.status = newStatus; 167 169 });