jumoog / intro-skipper

Fingerprint audio to automatically detect and skip intro/credit sequences in Jellyfin
https://discord.gg/AYZ7RJ3BuA
GNU General Public License v3.0
405 stars 22 forks source link

check if timestamps are invalid #177

Closed rlauuzo closed 1 month ago

rlauuzo commented 1 month ago
AbandonedCart commented 1 month ago

Valid was the one with the comment "it's always true" right? Who would have thought it would end up being useful.

rlauuzo commented 1 month ago

It's only false if IntroEnd is 0.

AbandonedCart commented 1 month ago

I was thinking about how we could determine it was the same show scanned every time. Think it may be worth checking and recording the full length of the file as a parameter?

That way all the times you'd normally have to reset the cache for replacing the same name would sort themselves out.

rlauuzo commented 1 month ago

I actually made a version that uses a blacklist to avoid rescanning items known to lack an intro until a new episode is added to the season. However, it's conflicting with the automatic tasks because i use queuedepisodes to mark episodes as blacklisted.

AbandonedCart commented 1 month ago

You may be able to get away with it using a more permanent version of the code to check for the episode idpath that's already made for auto. Instead of clearing, it could save.