mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-26 00:26:05 -07:00
Tighten YouTube playback launch readiness
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user