ExtrasMenu: Fix playback settings hook not working on subless titles

This commit is contained in:
Jade Macho 2024-10-19 03:00:18 +02:00
parent d42172174a
commit 7acc934b61
Signed by: 0x0ade
GPG Key ID: E1960710FE4FBEEF

View File

@ -144,13 +144,14 @@ export default JadefinIntegrity("ExtrasMenu", import.meta.url, () => new (class
// Options menu during playback // Options menu during playback
if (!options.dialogClass && if (!options.dialogClass &&
options.items.length >= 6 && options.items.length >= 4 &&
options.items[0].id == "aspectratio" && options.items[0].id == "aspectratio" &&
options.items[1].id == "playbackrate" && options.items[1].id == "playbackrate" &&
options.items[2].id == "quality" && options.items[2].id == "quality" &&
options.items[3].id == "repeatmode" && options.items[3].id == "repeatmode" &&
options.items[4].id == "suboffset" && // suboffset might not always exist
options.items[5].id == "stats" && // options.items[4].id == "suboffset" &&
// options.items[5].id == "stats" &&
true true
) { ) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {