ConfusedPolarBear / intro-skipper

Fingerprint audio to automatically detect and skip intro sequences in Jellyfin
GNU General Public License v3.0
984 stars 363 forks source link

Troubleshooter does not work due to `RangeError: Invalid array length` #181

Open HarHarLinks opened 1 year ago

HarHarLinks commented 1 year ago
Uncaught (in promise) RangeError: Invalid array length
    at paintFingerprintDiff (<anonymous>:180:19)
    at renderTroubleshooter (<anonymous>:3:5)
    at HTMLSelectElement.episodeChanged (<anonymous>:162:17)

which is

https://github.com/ConfusedPolarBear/intro-skipper/blob/686c978a2f5f57a909dc6e76029a0c225e2e3ec4/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js#L180

offset is NaN here. Going one step back to

https://github.com/ConfusedPolarBear/intro-skipper/blob/686c978a2f5f57a909dc6e76029a0c225e2e3ec4/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js#L3

offset is at least sometimes a number, as tested in the console e.g.

1135602

however offset.value is just undefined.