mdhiggins / PlexAutoSkip

Automatically skip content in Plex
MIT License
198 stars 11 forks source link

Docker - Skipping whole show at Intro marker #40

Closed dylancmds closed 1 year ago

dylancmds commented 1 year ago

ghcr.io/mdhiggins/plexautoskip-docker:latest Config is basically out of the box, I've only set the server parameters to create the connection. At the intro marker pas is seeking very heavily, right up to the credits. You can see in the logs it seeks the whole show in less a second.

pas.log

2023-03-09 21:40:15 - __main__ - INFO - Found new session 94 [11986] (Bluey (2018) s01e37 - The Adventure) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android viewOffset 1582 dylancmds on Plex for Android (TV) (proxying: False), sessions: 1
2023-03-09 21:40:15 - __main__ - INFO - Found skippable chapter Intro for media 94 [11986] (Bluey (2018) s01e37 - The Adventure) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 0-434000 and viewOffset 2311
2023-03-09 21:40:15 - __main__ - INFO - Seeking Plex for Android (TV) player playing 94 [11986] (Bluey (2018) s01e37 - The Adventure) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 2312 to 434000
2023-03-09 21:40:15 - __main__ - INFO - Found skippable chapter Credits for media 94 [11986] (Bluey (2018) s01e37 - The Adventure) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 434000-437984 and viewOffset 434180
2023-03-09 21:40:15 - __main__ - INFO - Seeking Plex for Android (TV) player playing 94 [11986] (Bluey (2018) s01e37 - The Adventure) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 434181 to 437984
2023-03-09 21:40:22 - __main__ - INFO - Found new session 95 [11987] (Bluey (2018) s01e38 - Copycat) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android viewOffset 438000 dylancmds on Plex for Android (TV) (proxying: False), sessions: 1
2023-03-09 21:40:32 - __main__ - INFO - Found skippable chapter Intro for media 95 [11987] (Bluey (2018) s01e38 - Copycat) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 0-434000 and viewOffset 8529
2023-03-09 21:40:32 - __main__ - INFO - Seeking Plex for Android (TV) player playing 95 [11987] (Bluey (2018) s01e38 - Copycat) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 8530 to 434000
2023-03-09 21:40:33 - __main__ - INFO - Found skippable chapter Credits for media 95 [11987] (Bluey (2018) s01e38 - Copycat) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 434000-437984 and viewOffset 435001
2023-03-09 21:40:33 - __main__ - INFO - Seeking Plex for Android (TV) player playing 95 [11987] (Bluey (2018) s01e38 - Copycat) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 435002 to 437984
2023-03-09 21:40:47 - __main__ - INFO - Found new session 96 [11988] (Bluey (2018) s01e39 - The Sleepover) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android viewOffset 438000 dylancmds on Plex for Android (TV) (proxying: False), sessions: 1
2023-03-09 21:40:57 - __main__ - INFO - Found skippable chapter Intro for media 96 [11988] (Bluey (2018) s01e39 - The Sleepover) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 0-434000 and viewOffset 8964
2023-03-09 21:40:57 - __main__ - INFO - Seeking Plex for Android (TV) player playing 96 [11988] (Bluey (2018) s01e39 - The Sleepover) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 8965 to 434000
2023-03-09 21:40:58 - __main__ - INFO - Found skippable chapter Credits for media 96 [11988] (Bluey (2018) s01e39 - The Sleepover) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 434000-437984 and viewOffset 435001
2023-03-09 21:40:58 - __main__ - INFO - Seeking Plex for Android (TV) player playing 96 [11988] (Bluey (2018) s01e39 - The Sleepover) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 435002 to 437984
2023-03-09 21:41:12 - __main__ - INFO - Found new session 98 [11989] (Bluey (2018) s01e40 - Early Baby) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android viewOffset 438000 dylancmds on Plex for Android (TV) (proxying: False), sessions: 1
2023-03-09 21:41:23 - __main__ - INFO - Found skippable chapter Intro for media 98 [11989] (Bluey (2018) s01e40 - Early Baby) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 0-434000 and viewOffset 8962
2023-03-09 21:41:23 - __main__ - INFO - Seeking Plex for Android (TV) player playing 98 [11989] (Bluey (2018) s01e40 - Early Baby) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 8963 to 434000
2023-03-09 21:41:24 - __main__ - INFO - Found skippable chapter Credits for media 98 [11989] (Bluey (2018) s01e40 - Early Baby) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android with range 434000-437984 and viewOffset 435001
2023-03-09 21:41:24 - __main__ - INFO - Seeking Plex for Android (TV) player playing 98 [11989] (Bluey (2018) s01e40 - Early Baby) Chromecast Google TV|4268450aa2402d0e-com-plexapp-android from 435002 to 437984

config.ini

[Skip]
mode = skip
tags = intro, commercial, advertisement, credits
types = movie, episode
ignored-libraries = 
last-chapter = 0.0
unwatched = True
first-episode-series = Watched
first-episode-season = Always
first-safe-tags = 
next = False

[Binge]
ignore-skip-for = 0
safe-tags = 
same-show-only = False
skip-next-max = 0

[Offsets]
start = 3000
end = 1000
command = 500
tags = intro

[Volume]
low = 0
high = 100
mdhiggins commented 1 year ago

This is a problem with your media, you have files with an "intro" chapter that goes from 0-434000 and then a "credits" chapter that goes from 434000-437984

Not a lot of room in between those two markers lol, so it skips the intro and is already in the credits triggering another skip

Seems like all the episodes displayed have a similar chapter pattern so either you created this with bad chapter data or your downloaded from a crappy source

Your options are

  1. Fix the chapter metadata on each file (https://ikyle.me/blog/2020/add-mp4-chapters-ffmpeg)
  2. Ignore the chapter data by changing your tags to tags = m:intro, commercial, advertisement, m:credits which means it will only skip markers and not markers and chapters with that tag (though this will apply globally)
  3. Configure this show in custom.json to use special tags as per point 2 or ignore this show completely and define custom skip segments if you didn't want to make global changes

Chapters are part of the file, markers are detected and tagged by Plex and stored in the Plex database. You can view all chapters and markers in the Plex XML output if you need to verify this

dylancmds commented 1 year ago

Thanks, I'll do some more testing and tweaking tonight or tomorrow and follow up. I think suggestion 2 should clear this up.

dylancmds commented 1 year ago

Suggestion 2 cleared this up. I also set markers in plex for local+online. I changed it to local only earlier today and may not have had accurate markers for this media. I'll play around with the different configs. Thanks! Easy fix, closing.