Skip to content

Jumped to beginning of video after resuming show #143

Description

@mortenmoulder

Not sure what caused this. Been using bw_plex for a few hours now and it has worked pretty good. Definitely satisfying. But I noticed an issue, where I was watching an episode, and I stopped at ~9 minutes to go eat. When I came back, I resumed at the 9 minute mark, but the video jumped back to the intro ending instead.

Log can be found here:

2021-01-03 21:47:41,498 :: bw_plex :: DEBUG :: plex.py:1191 :: Found SHOW.s01e03 theme start 01:57, theme end 03:28, ffmpeg_end 01:46 progress 09:04 fake_progress 09:14 best_time 03:28 credits_start 00:00 credits_end 00:00
2021-01-03 21:47:41,499 :: bw_plex :: DEBUG :: plex.py:1160 :: Called jump with SHOW.s01e03 2 208.4455328798186 None
2021-01-03 21:47:41,499 :: bw_plex :: INFO :: plex.py:931 :: Called client_action with 208.4455328798186 03:28 2 None
2021-01-03 21:47:41,508 :: bw_plex :: INFO :: plex.py:967 :: sessionkey 2 media_sessionkey 2
2021-01-03 21:47:41,509 :: bw_plex :: INFO :: plex.py:971 :: client HOSTNAME 544.0
2021-01-03 21:47:41,509 :: bw_plex :: INFO :: plex.py:998 :: Checking if we cant find the correct client
2021-01-03 21:47:41,509 :: bw_plex :: INFO :: plex.py:1000 :: random random
2021-01-03 21:47:41,509 :: bw_plex :: INFO :: plex.py:1017 :: Connectiong to HOSTNAME
2021-01-03 21:47:41,616 :: bw_plex :: DEBUG :: plex.py:1043 :: calculated_offset 208 0.208
2021-01-03 21:47:41,740 :: bw_plex :: INFO :: plex.py:1051 :: Seeked USER HOSTNAME to 208 03:28 SHOW.s01e03
2021-01-03 21:47:41,825 :: bw_plex :: DEBUG :: plex.py:1191 :: Found SHOW.s01e03 theme start 01:57, theme end 03:28, ffmpeg_end 01:46 progress 03:28 fake_progress 03:38 best_time 03:28 credits_start 00:00 credits_end 00:00

As you can see, it says it found the episode, where the theme starts (01:57) and ends (03:28), what the progress is (09:04), and (maybe) where it should jump to, to end the intro of the episode (03:28).

Sounds to me like it's missing a if progress < best_time check, before it should jump.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions