Jump to content

Plugin: EmbyCredits, detect end credits and add auto skip.


Go to solution Solved by yocker,

Recommended Posts

yocker
Posted
34 minutes ago, rechigo said:

The DLL is missing !

Fixed.

  • Like 1
  • 2 weeks later...
Posted

Is there a reason why previously detected end credit tags would be removed? I've had a number of shows where end credits were detected successfully a few months ago that now no longer have end credit markers. I only realized this after the end credit skip option stopped showing up while watching episodes for those shows. When I viewed end credits from the plug-in for those shows it identified that end credits were missing for almost all of the episodes. I reran the scan for those shows, and end credits were detected again. But I'm not sure why they were deleted in the first place.

Posted
1 minute ago, DarWun said:

Is there a reason why previously detected end credit tags would be removed? I've had a number of shows where end credits were detected successfully a few months ago that now no longer have end credit markers. I only realized this after the end credit skip option stopped showing up while watching episodes for those shows. When I viewed end credits from the plug-in for those shows it identified that end credits were missing for almost all of the episodes. I reran the scan for those shows, and end credits were detected again. But I'm not sure why they were deleted in the first place.

I'm not 100% sure about this but it looks like:

1. Emby for some reason removed all detections, even their own intro detections, when Emby last updated.
2. Emby also removed all detections including their own intro when doing a metadata refresh even when it's said to only look for missing metadata.

I don't know why the devs made it like that or if it's a bug.
It's not the plugin removing the detections.

  • Thanks 1
Posted
3 hours ago, yocker said:

I'm not 100% sure about this but it looks like:

1. Emby for some reason removed all detections, even their own intro detections, when Emby last updated.
2. Emby also removed all detections including their own intro when doing a metadata refresh even when it's said to only look for missing metadata.

I don't know why the devs made it like that or if it's a bug.
It's not the plugin removing the detections.

Thanks. I've been selective in my use of this plug-in, only having used it to determine end credits for a hand full of series in my collection. And it looks like the previously detected end-credit flags were wiped for every one of those shows recently. That may have coincided with Emby rescanning intro markers. But I don't recall Emby redetecting intro credits recently on any of the series where end credits tags disappeared. I am currently rescanning end credits for all of the series where they were deleted. I'll report back if I figure out why they were deleted in the first place.

Posted
33 minutes ago, DarWun said:

Thanks. I've been selective in my use of this plug-in, only having used it to determine end credits for a hand full of series in my collection. And it looks like the previously detected end-credit flags were wiped for every one of those shows recently. That may have coincided with Emby rescanning intro markers. But I don't recall Emby redetecting intro credits recently on any of the series where end credits tags disappeared. I am currently rescanning end credits for all of the series where they were deleted. I'll report back if I figure out why they were deleted in the first place.

It's not Emby rescanning for intro that removes the markers.
Emby doing metadata scans removes all markers, including the intro once.

  • Like 1
Posted
2 hours ago, yocker said:

It's not Emby rescanning for intro that removes the markers.
Emby doing metadata scans removes all markers, including the intro once.

Thanks for the clarification. I haven't seen intro markers removed after Emby doing metadata rescans. I've only seen the end credit markers removed (whether due to metadata rescan of for another reason).

Posted (edited)
53 minutes ago, DarWun said:

Thanks for the clarification. I haven't seen intro markers removed after Emby doing metadata rescans. I've only seen the end credit markers removed (whether due to metadata rescan of for another reason).

For me it sadly does and others have reported the same. :( 

Anyway.. It's sadly out of my hands and needs a change in Emby it self from the devs. 

Edited by yocker
  • Agree 3
  • Thanks 1
Posted

@DarWunI forgot to write.
You can use the backup feature to hasten the re-detection.

Posted

Hi, first of all, thanks for the plugin!

I have the same problem, the end markers disappear when an episode is played.

For now I have solved it like this: instead of using Emby's task scheduler, I launch a script that uses the Credits Detector API. First it checks if a backup exists, if there is one it restores it, then it starts detecting all episodes with /CreditsDetector/StartDetection and "SkipExistingMarkers": true, I wait for it to finish (/CreditsDetector/GetProgress) and finally it overwrites the backup.

I would like to comment on another thing, the recommended docker container does not work on my RaspberryPi 4, I had to end up using hertzg/tesseract-server and with another script delete the temp files.

again, thanks for the work done!!

Posted
14 minutes ago, spk2010 said:

Hi, first of all, thanks for the plugin!

I have the same problem, the end markers disappear when an episode is played.

For now I have solved it like this: instead of using Emby's task scheduler, I launch a script that uses the Credits Detector API. First it checks if a backup exists, if there is one it restores it, then it starts detecting all episodes with /CreditsDetector/StartDetection and "SkipExistingMarkers": true, I wait for it to finish (/CreditsDetector/GetProgress) and finally it overwrites the backup.

I would like to comment on another thing, the recommended docker container does not work on my RaspberryPi 4, I had to end up using hertzg/tesseract-server and with another script delete the temp files.

again, thanks for the work done!!

Hmm that doesn't sound like the normal Emby behavior. Never heard of it removing chapter info after play, i will look into what i can find about it.
Do you have other plugins that edit chapters? 

A Raspberry PI isn't really recommended as it's not powerful enough. I'm surprised you actually got any of the OCR to work on it.
OCR is a form of AI that reads images/texts and gives back what it sees.
For PaddleOCR it's recommended to have a Nvidia GFX card and and 100GB disk space, Tesseract requires way less space but i would recommend a somewhat modern CPU.

Posted

@LukeSorry for bothering with this but i would love to know if Emby overwriting the chapter markers is intentional or something that will be fixed.
It's affecting Embys own intro markers as well plus it creates havoc for this plugin.

  • Like 2
Posted
58 minutes ago, yocker said:

Hmm that doesn't sound like the normal Emby behavior. Never heard of it removing chapter info after play, i will look into what i can find about it.
Do you have other plugins that edit chapters? 

Chapter API, only for view Intro Summary 

 

1 hour ago, yocker said:

A Raspberry PI isn't really recommended as it's not powerful enough. I'm surprised you actually got any of the OCR to work on it.

yes, it really is slow, it takes about 15 minutes per episode, considering that I have changed these 2 values: Search Start Position I have adjusted it to 5 minutes from the end and the fps to 0.7, I am very happy with the result. Precisely because of how long it takes I restore the last backup before scanning new files

  • Like 1
Posted
4 minutes ago, spk2010 said:

Chapter API, only for view Intro Summary 

 

yes, it really is slow, it takes about 15 minutes per episode, considering that I have changed these 2 values: Search Start Position I have adjusted it to 5 minutes from the end and the fps to 0.7, I am very happy with the result. Precisely because of how long it takes I restore the last backup before scanning new files

I've been working on using ItemUpdated (when a file has changed) as a trigger to restore backup for a TV show.
Don't know if i can make it work in a way i find okay.

yocker
Posted

A little sneak preview of next version.

image.thumb.png.04103edde490a62ff4549ec88246962c.png

This is !!!HEAVILY!!! inspired by Chapter API (a great plugin that i use a lot and can recommend).

@rbjtechYou were involved in making Chapter API correct? Is it okay i release this? If not then i will change it instantly and apologize.
The layout and functionality of Chapter API is pretty much perfect and people have been asking me to include something like it in this plugin.

  • Like 2
rbjtech
Posted (edited)
5 minutes ago, yocker said:

You were involved in making Chapter API correct? Is it okay i release this? If not then i will change it instantly and apologize.
The layout and functionality of Chapter API is pretty much perfect and people have been asking me to include something like it in this plugin.

no that was by @TeamB following the removal of the original Introskip Plugin that I was involved with ... 

 

Edited by rbjtech
yocker
Posted
1 minute ago, rbjtech said:

no that was by @TeamB following the removal of the original Introskip Plugin that I was involved with ... 

Thank you.

@TeamBWill it be okay?

  • Like 1
TeamB
Posted

its open source, as long as you follow the license its all good.

  • Like 1
yocker
Posted (edited)
1 minute ago, TeamB said:

its open source, as long as you follow the license its all good.

Many, many thanks.
Still nice to have permission! :) 

I will be sure to write in the plugin that it's inspired by Chapter API!

Edited by yocker
  • Thanks 1
yocker
Posted

New version out (v2.3.4) at yocksers/EmbyCredits Github.

Added:

  1. Plugin now checks when a video has changed and sees if the time stamps are still there and if not restore them if they are present in the backup files. This feature can be turned on and off.
    This has been made to fix the problem of Emby sometimes deleting time stamps.

  2. Added a Chapter edit function, this can be found in the Chaper Edit tab.
    This was heavily inspired by Teams B Chapter API so a special thanks to him!

  3. Added an automatic skip intro blocker.
    When activated for a series it will stop intros from being automatically skipped if configured in Emby.
    This is for is people want to automatically skip some intros but not others.

Changed:

  1. Backup system has been changed to save files per TV show instead of one big backup file.
    This was done for user friendliness but also to make the auto restore system work better.

Fixed:

  1. Minor bug fixes that should not be noticeable to users.

Special thanks as always to @Neminemfor help with the plugin.

@spk2010@DarWunI finished and added the "fix" to Emby deleting the time stamps. Hopefully this will fix all the problems with Emby doing that until the devs look into the problem.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...