mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-26 00:26:05 -07:00
fix: address latest coderabbit review
This commit is contained in:
@@ -144,13 +144,13 @@ export function createPrepareYoutubePlaybackInMpvHandler(deps: YoutubePlaybackLa
|
||||
// Continue polling until media tracks are actually available.
|
||||
}
|
||||
}
|
||||
const pathChanged = currentPath !== previousPath;
|
||||
const pathDiffersFromInitial = currentPath !== previousPath;
|
||||
const matchesChangedTarget =
|
||||
currentPath === targetUrl ||
|
||||
(isYoutubeMediaPath(currentPath) &&
|
||||
isYoutubeMediaPath(targetUrl) &&
|
||||
pathMatchesYoutubeTarget(currentPath, targetUrl));
|
||||
if (pathChanged && matchesChangedTarget) {
|
||||
if (pathDiffersFromInitial && matchesChangedTarget) {
|
||||
if (deps.requestProperty) {
|
||||
try {
|
||||
const trackList = await deps.requestProperty('track-list');
|
||||
|
||||
Reference in New Issue
Block a user