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.

include delay in copy/paste subtitle feature

Pas 04b6368a 35312114

+9
+9
src/components/player/atoms/settings/CaptionsView.tsx
··· 231 231 const { t } = useTranslation(); 232 232 const setCaption = usePlayerStore((s) => s.setCaption); 233 233 const setCustomSubs = useSubtitleStore((s) => s.setCustomSubs); 234 + const setDelay = useSubtitleStore((s) => s.setDelay); 234 235 const [isLoading, setIsLoading] = useState(false); 235 236 const [error, setError] = useState<string | null>(null); 236 237 ··· 269 270 id: parsedData.id, 270 271 }); 271 272 setCustomSubs(); 273 + 274 + // Set delay if included in the pasted data, otherwise reset to 0 275 + if (parsedData.delay !== undefined) { 276 + setDelay(parsedData.delay); 277 + } else { 278 + setDelay(0); 279 + } 272 280 } catch (err) { 273 281 console.error("Failed to paste subtitle:", err); 274 282 setError(err instanceof Error ? err.message : "Failed to paste subtitle"); ··· 394 402 isHearingImpaired: v.isHearingImpaired, 395 403 source: v.source, 396 404 encoding: v.encoding, 405 + delay, 397 406 }; 398 407 399 408 try {