Jump to content

Show Intro Skip Option


Liquidfire88

Recommended Posts

20 hours ago, CBers said:

Typical !!

After I posted that, it finished 🤣


2021-09-16 16:41:16.144 Info Intro Skip: Supergirl S: 5 E: 4 title sequence successful.
2021-09-16 16:41:18.183 Info Intro Skip: Supergirl S: 5 E: 5 title sequence successful.
2021-09-16 16:41:20.021 Info Intro Skip: Supergirl S: 5 E: 6 title sequence successful.
2021-09-16 16:41:21.857 Info Intro Skip: Supergirl S: 5 E: 7 title sequence successful.
2021-09-16 16:41:23.644 Info Intro Skip: Supergirl S: 5 E: 8 title sequence successful.
2021-09-16 16:41:25.408 Info Intro Skip: Supergirl S: 5 E: 9 title sequence successful.
2021-09-16 16:41:27.169 Info Intro Skip: Supergirl S: 5 E: 10 title sequence successful.
2021-09-16 16:41:28.956 Info Intro Skip: Supergirl S: 5 E: 11 title sequence successful.
2021-09-16 16:41:30.796 Info Intro Skip: Supergirl S: 5 E: 12 title sequence successful.
2021-09-16 16:41:32.573 Info Intro Skip: Supergirl S: 5 E: 13 title sequence successful.
2021-09-16 16:41:34.335 Info Intro Skip: Supergirl S: 5 E: 14 title sequence successful.
2021-09-16 16:41:36.114 Info Intro Skip: Supergirl S: 5 E: 15 title sequence successful.
2021-09-16 16:41:37.871 Info Intro Skip: Supergirl S: 5 E: 16 title sequence successful.
2021-09-16 16:41:39.674 Info Intro Skip: Supergirl S: 5 E: 17 title sequence successful.
2021-09-16 16:41:41.475 Info Intro Skip: Supergirl S: 5 E: 18 title sequence successful.
2021-09-16 16:41:43.250 Info Intro Skip: Supergirl S: 5 E: 19 title sequence successful.
2021-09-16 16:41:45.074 Info Intro Skip:  will process 11 episodes for Supergirl - Season 6.
2021-09-16 16:43:36.086 Info Intro Skip: Supergirl S: 6 E: 1 title sequence successful.
2021-09-16 16:43:38.275 Info Intro Skip: Supergirl S: 6 E: 2 title sequence successful.
2021-09-16 16:43:40.239 Info Intro Skip: Supergirl S: 6 E: 3 title sequence successful.
2021-09-16 16:43:42.157 Info Intro Skip: Supergirl S: 6 E: 4 title sequence successful.
2021-09-16 16:43:44.168 Info Intro Skip: Supergirl S: 6 E: 5 title sequence successful.
2021-09-16 16:43:46.112 Info Intro Skip: Supergirl S: 6 E: 6 title sequence successful.
2021-09-16 16:43:47.928 Info Intro Skip: Supergirl S: 6 E: 7 title sequence successful.
2021-09-16 16:43:49.619 Info Intro Skip: Supergirl S: 6 E: 8 title sequence successful.
2021-09-16 16:43:51.503 Info Intro Skip: Supergirl S: 6 E: 9 title sequence successful.
2021-09-16 16:43:53.641 Info Intro Skip: Supergirl S: 6 E: 10 title sequence successful.
2021-09-16 16:43:55.587 Info Intro Skip: Supergirl S: 6 E: 11 title sequence successful.
2021-09-16 16:43:57.527 Debug TaskManager: Episode Title Sequence Detection Completed after 83 minute(s) and 17 seconds

Strange there as a 8 minute gap in the log messages though 🤔

Anyway, nothing to see here, move along.

Edit: So what is next? Do I run the "IntroSkip Chapter Insertion" task now?

 

We could do more logging if that helps, but what is happening is a whole bunch of math calculations, trying to find the smallest weight difference between two numbers, it is happening more then a million times. This is why we see the CPU increase so dramatically during the task.

Each time we move to a new series, we increase the progress of the task.

This is also why we might see it sit at a certain percentage for what seems like forever. 😉

Finally, because we are using TPL, the progress of the task may differ each time we run it, because each time we would grab series randomly to either process or skip if complete.

It's interesting, and it is the epitome of a long running task 😆

Link to comment
Share on other sites

Cheesegeezer

I think i have fixed that damn "INDEX OUT OF RANGE ISSUE" - What a little bar steward that was.  Something so simple but the re-ordering of the chapters really got me confused.

Anyways i will have a release up in the Instructions thread shortly.

For those getting the Chapter Task (Failed) when running the task - You will only need to run the chapter task after loading the plugin and restarting emby.  It should just pick up from where you left off.  Hopefully you report everything is working well now.

 

  • Like 2
Link to comment
Share on other sites

7 minutes ago, Cheesegeezer said:

I think i have fixed that damn "INDEX OUT OF RANGE ISSUE" - What a little bar steward that was.  Something so simple but the re-ordering of the chapters really got me confused.

Anyways i will have a release up in the Instructions thread shortly.

For those getting the Chapter Task (Failed) when running the task - You will only need to run the chapter task after loading the plugin and restarting emby.  It should just pick up from where you left off.  Hopefully you report everything is working well now.

 

Nice 🧀!

Usually, that can be attributed to a zero based index, grabbing count, but not removing 1.

Is that what happened?

Link to comment
Share on other sites

Cheesegeezer
5 minutes ago, chef said:

Nice 🧀!

Usually, that can be attributed to a zero based index, grabbing count, but not removing 1.

Is that what happened?

Nope nothing to do with that lol, I know i'm bad at c#, but not that bad hhahahaha

it's trickier for me because we need to get the chapter information for the title sequence, then insert it to the chapter list, then reorganise the list in starttimetick order, and then organise the chapter naming based on the indexing.

Chicken and egg scenario, i can't check the index of the Title sequence until we have add it to the chapter list, but if we add it and the index is out of range, we get the exception thrown.

My head just about exploded hahahaha

Edited by Cheesegeezer
  • Haha 1
Link to comment
Share on other sites

17 minutes ago, Cheesegeezer said:

Nope nothing to do with that lol, I know i'm bad at c#, but not that bad hhahahaha

it's trickier for me because we need to get the chapter information for the title sequence, then insert it to the chapter list, then reorganise the list in starttimetick order, and then organise the chapter naming based on the indexing.

Chicken and egg scenario, i can't check the index of the Title sequence until we have add it to the chapter list, but if we add it and the index is out of range, we get the exception thrown.

My head just about exploded hahahaha

Oh, you add the chapter in there, so Chapter index +1, index out of range. I see.

Link to comment
Share on other sites

Cheesegeezer
2 minutes ago, CBers said:

That's still showing an internal version of 2.0.3.4 😀

image.png.541f0d43712635f5b64be77c515655b4.png

what!! that's wierd

image.png.b2e0f701ef27a7a1de057a407c86d1c2.png

Link to comment
Share on other sites

Cheesegeezer

@Sammy there is a new dll up on. Which can be found on the Instructions thread.  If you can test the chapter Insert task again, i'm hoping i've fixed it properly now.

https://emby.media/community/index.php?/topic/101687-introskip-instructions-beta-releases/&do=findComment&comment=1067501

 

Edited by Cheesegeezer
Link to comment
Share on other sites

BaukeZwart

Where are the chapter images stored on Docker? 

I enabked the auto chapter image extraction, the task ran for only 1 sec, and no chapter images are showing. No errors or anything related to image extraction in the log. 

Link to comment
Share on other sites

Cheesegeezer
6 minutes ago, BaukeZwart said:

Where are the chapter images stored on Docker? 

I enabked the auto chapter image extraction, the task ran for only 1 sec, and no chapter images are showing. No errors or anything related to image extraction in the log. 

please read the instructions here. Let us know if you are still having issues.  But you need to run the Thumbnail Extract Image task afterwards or enable IntroSkip to automatically do this after the chapter insert task has run.

 

Edited by Cheesegeezer
Link to comment
Share on other sites

36 minutes ago, Cheesegeezer said:

@Sammy there is a new dll up on. Which can be found on the Instructions thread.  If you can test the chapter Insert task again, i'm hoping i've fixed it properly now.

https://emby.media/community/index.php?/topic/101687-introskip-instructions-beta-releases/&do=findComment&comment=1067501

 

Downloaded and running it again. This time I went for a fresh scan by renaming the db file. It'll take a while but I'll report back when I get results.

Link to comment
Share on other sites

rbjtech
18 minutes ago, Sammy said:

Downloaded and running it again. This time I went for a fresh scan by renaming the db file. It'll take a while but I'll report back when I get results.

Quick tip Sammy - when the FP Task has complete (task 1), shutdown emby and take a copy of the titlesequence.db at this stage.  Then you have a full recovery point to use for other updates and enhancements without the need to re-run the FP task.. ;) 

Link to comment
Share on other sites

Cheesegeezer
Just now, rbjtech said:

Quick tip Sammy - when the FP Task has complete (task 1), shutdown emby and take a copy of the titlesequence.db at this stage.  Then you have a full recovery point to use for other updates and enhancements without the need to re-run the FP task.. ;) 

we should put this on the instructions page i think

  • Agree 2
Link to comment
Share on other sites

15 minutes ago, Cheesegeezer said:

we should put this on the instructions page i think

So I should rename it until Emby Server restarts then replace the new one with the old one? Maybe I should stop the current FP scan and do that now because it is only 7% done right now?

Link to comment
Share on other sites

samuelqwe
58 minutes ago, Sammy said:

So I should rename it until Emby Server restarts then replace the new one with the old one? Maybe I should stop the current FP scan and do that now because it is only 7% done right now?

Finish the FP task, then stop Emby, copy the DB somewhere (and rename the copy if you want) then restart Emby.

That copied DB will serve as a checkpoint, and you can reuse it later to avoid redoing the FP task.

Edited by samuelqwe
  • Agree 1
Link to comment
Share on other sites

rbjtech
1 minute ago, Sammy said:

So I should rename it until Emby Server restarts then replace the new one with the old one? Maybe I should stop the current FP scan and do that now because it is only 7% done right now?

No let the FP scan finish, shutdown emby (to close the dB gracefully), then just COPY it as another file.  Then restart emby again.

The file size isn't a problem - On a large library, it's the time taken to generate it which is precious and you don't want to re-do it unless you absolutely have to.

Link to comment
Share on other sites

rbjtech
7 minutes ago, samuelqwe said:

Finish the FP task, then stop Emby, copy the DB somewhere (or rename) then restart Emby.

That copied DB will serve as a checkpoint, and you can reuse it later to avoid redoing the FP task.

Don't rename it - that will restart the FP task again - just copy it !

edit - ah if you mean rename the copy - then sure .. 🤪

Edited by rbjtech
Link to comment
Share on other sites

Cheesegeezer

This is what I do, once the FP has completed, I shutdown emby. Go to C:\Users\***user***\AppData\Roaming\Emby-Server\programdata\data

Copy and paste the titlesequence.db and then rename the titlesequence - copy.db to titlesequence.fp (fingerprint)

image.png.21bc45b09153b3c042f7f0248a705916.png

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...