mdhiggins / PlexAutoSkip

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

Not Skipping Intro in Docker #29

Closed Speedbird757 closed 1 year ago

Speedbird757 commented 1 year ago

Hi,

I have PlexAutoSkip running in docker but it doesn't seem to be working. It detects new sessions but just doesn't skip forward when it comes to the intro. This is all that's coming up in the pas.log file:

2023-02-05 14:22:31 - main - INFO - /usr/local/pas/venv/bin/python3 2023-02-05 14:22:31 - main - INFO - Loading config file /usr/local/pas/config/config.ini. 2023-02-05 14:22:31 - main - INFO - Loading custom JSON file /usr/local/pas/config/custom.json 2023-02-05 14:22:31 - main - INFO - Connecting to Plex server... 2023-02-05 14:22:36 - main - INFO - Connected to Plex server Mac Mini Plex Server using plex.tv account 2023-02-05 14:22:36 - main - INFO - Skipper initiated and ready 2023-02-05 14:22:36 - websocket - INFO - Websocket connected 2023-02-05 14:22:46 - main - INFO - Found new session 106 [43498] (The Last of Us s01e02 - Infected) -----------------.local|s1z92qxup4lsgus55bff9l3v viewOffset 530613 ---------, sessions: 0

There doesn't appear to be any errors but it's just not skipping the intro. Any ideas what I'm doing wrong?

mdhiggins commented 1 year ago

Based on the logs it looks like the session is detected at viewoffset 530613 at time of initiation. That's almost 9 minutes into the episode, I would imagine the intro takes place before then. Would be worthwhile to check the XML for that episode and ensure that Plex has markers detected and see where they are, and then start the episode from the beginning or at least before the intro and see if that helps

To view XML, go to the episode on Plex web, hit the three dot menu, hit "get info" then hit View XML

Search for "markers"

Speedbird757 commented 1 year ago

That was starting the playback just before the intro. I checked the XML and it does have the intro marker at 544596

mdhiggins commented 1 year ago

Hmm can you post that xml info and your config.ini. Maybe some debug logs too if you can

Speedbird757 commented 1 year ago

Here's the XML info and my config, and I attached a debug log.

XML:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="55" librarySectionTitle="Fantasy" librarySectionUUID="0dce8dc7-93f8-4c2b-ad91-5182e2989678" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1674674314">
<style class="darkreader darkreader--safari-fallback">
html, body, body > :not(iframe) { background-color: #000000 !important; border-color: #746959 !important; color: #ffffff !important; }
</style>
<Video ratingKey="43498" key="/library/metadata/43498" parentRatingKey="43275" grandparentRatingKey="43274" guid="plex://episode/637f8575d6887c6fb38b3cd5" parentGuid="plex://season/605d979c5ec4e5002db9d396" grandparentGuid="plex://show/5e69c6f6874db7003e2dd59b" type="episode" title="Infected" grandparentKey="/library/metadata/43274" parentKey="/library/metadata/43275" librarySectionTitle="Fantasy" librarySectionID="55" librarySectionKey="/library/sections/55" grandparentTitle="The Last of Us" parentTitle="Season 1" contentRating="TV-MA" summary="In 2003, an Indonesian scientist makes a devastating discovery. In 2023, now outside of the quarantine zone, Joel and Tess clash over Ellie's fate as they navigate a long-abandoned Boston overrun with Infected." index="2" parentIndex="1" audienceRating="8.6" viewCount="2" lastViewedAt="1675607228" year="2023" thumb="/library/metadata/43498/thumb/1675611549" art="/library/metadata/43274/art/1675576148" parentThumb="/library/metadata/43275/thumb/1674769314" grandparentThumb="/library/metadata/43274/thumb/1675576148" grandparentArt="/library/metadata/43274/art/1675576148" duration="3167104" originallyAvailableAt="2023-01-22" addedAt="1674499584" updatedAt="1675611549" audienceRatingImage="themoviedb://image.rating">
<Media id="73575" duration="3167104" bitrate="1950" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="74814" key="/library/parts/74814/1674580158/file.mkv" duration="3167104" file="/Volumes/Plex Extended/TV Extended/Fantasy/The Last of Us (2023)/Season 1/The Last of Us - S01E02 - Infected.mkv" size="772049673" container="mkv" videoProfile="main 10">
<Stream id="202005" streamType="1" default="1" codec="hevc" index="0" bitrate="1950" bitDepth="10" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" height="1080" level="120" profile="main 10" refFrames="1" scanType="progressive" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)"></Stream>
<Stream id="202006" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)" extendedDisplayTitle="English (EAC3 5.1)"></Stream>
<Stream id="202007" streamType="3" default="1" codec="ass" index="2" language="English" languageTag="en" languageCode="eng" title="English" displayTitle="English (ASS)" extendedDisplayTitle="English (ASS)"></Stream>
</Part>
</Media>
<Director id="127450" filter="director=127450" tag="Neil Druckmann"/>
<Writer id="126236" filter="writer=126236" tag="Craig Mazin"/>
<Guid id="imdb://tt14500884"/>
<Guid id="tmdb://4071039"/>
<Guid id="tvdb://9435211"/>
<Rating image="themoviedb://image.rating" value="8.6" type="audience"/>
<Role id="126457" filter="actor=126457" tag="Anna Torv" tagKey="5d77682d54c0f0001f3027a5" role="Tess" thumb="https://metadata-static.plex.tv/0/people/02fc96f5e35d92139aae7fd49bd6e419.jpg"/>
<Role id="127454" filter="actor=127454" tag="Christine Hakim" tagKey="5d77684f594b2b001e688522" role="Ibu Ratna" thumb="https://metadata-static.plex.tv/people/5d77684f594b2b001e688522.jpg"/>
<Role id="127455" filter="actor=127455" tag="Yayu A.W. Unru" tagKey="5d7768a833f255001e85c3e0" role="Lt. Gen. Agus Hidayat" thumb="https://metadata-static.plex.tv/people/5d7768a833f255001e85c3e0.jpg"/>
<Role id="127456" filter="actor=127456" tag="Sharon Crandall" tagKey="5d776bc2ad5437001f7a939b" role="Lab Worker" thumb="https://metadata-static.plex.tv/people/5d776bc2ad5437001f7a939b.jpg"/>
<Role id="52209" filter="actor=52209" tag="Philip Prajoux" tagKey="5d776bd0ad5437001f7ab270" role="Infected Kissing Man" thumb="https://metadata-static.plex.tv/people/5d776bd0ad5437001f7ab270.jpg"/>
<Role id="127457" filter="actor=127457" tag="Olivier Ross-Parent" tagKey="5e164ddb91c2030041229f41" role="Museum Clicker" thumb="https://metadata-static.plex.tv/people/5e164ddb91c2030041229f41.jpg"/>
<Role id="127458" filter="actor=127458" tag="Samuel Hoeksema" tagKey="5d7769e6ad5437001f76b3d8" role="Museum Clicker" thumb="https://image.tmdb.org/t/p/original/kvoHn3tMVkRgvNYz331tv0CWGex.jpg"/>
<Marker id="21290" type="intro" startTimeOffset="544596" endTimeOffset="617480">
<Attributes id="21290"/>
</Marker>
<Extras size="0"></Extras>
<Related></Related>
</Video>
</MediaContainer>

Config:

[Plex.tv] username = password = token = servername =

[Server] address = ssl = True port = 32400

[Security] ignore-certs = True

[Skip] mode = skip tags = commercial, advertisement, c:ED, c:Ending, c:Opening, c:OP, c:Opening Credits, c:End Credits, c:Ratings, c:Studio Logo, c:Previously On, c:Next Time types = movie, episode ignored-libraries = Local Files, Local Photos last-chapter = 0.0 unwatched = True first-episode-series = Watched first-episode-season = Always next = False

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

[Volume] low = 0 high = 100

mdhiggins commented 1 year ago

Found the problem. You removed "intro" from your tags

Either put "intro" or "m:intro" back on that list

Speedbird757 commented 1 year ago

Dang I'm dumb, that fixed it, thanks a lot for your help