Tighten YouTube playback launch readiness

This commit is contained in:
2026-03-25 16:33:50 -07:00
committed by sudacode
parent 58304757aa
commit 28afd15134
2 changed files with 45 additions and 5 deletions

View File

@@ -140,11 +140,10 @@ export function createPrepareYoutubePlaybackInMpvHandler(deps: YoutubePlaybackLa
}
}
if (previousPath && currentPath !== previousPath) {
if (
isYoutubeMediaPath(currentPath) &&
isYoutubeMediaPath(targetUrl)
) {
return true;
if (isYoutubeMediaPath(currentPath) && isYoutubeMediaPath(targetUrl)) {
if (!pathMatchesYoutubeTarget(currentPath, targetUrl)) {
continue;
}
}
if (deps.requestProperty) {
try {