mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-25 00:11:26 -07:00
fix: address latest review feedback
This commit is contained in:
@@ -258,6 +258,11 @@ async function injectDownloadedSubtitles(
|
||||
}
|
||||
}
|
||||
|
||||
if (primaryTrackId === null) {
|
||||
deps.showMpvOsd('Primary subtitles failed to load.');
|
||||
return false;
|
||||
}
|
||||
|
||||
const currentSubText = await deps.requestMpvProperty('sub-text');
|
||||
if (typeof currentSubText === 'string' && currentSubText.trim().length > 0) {
|
||||
deps.refreshCurrentSubtitle(currentSubText);
|
||||
|
||||
Reference in New Issue
Block a user