Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jumped to beginning of video after resuming show #143

Open
mortenmoulder opened this issue Jan 3, 2021 · 4 comments
Open

Jumped to beginning of video after resuming show #143

mortenmoulder opened this issue Jan 3, 2021 · 4 comments

Comments

@mortenmoulder
Copy link

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.

@Hellowlol
Copy link
Owner

Yep

@Hellowlol
Copy link
Owner

Hellowlol commented Jan 3, 2021

Can you post the entire log. The snippet isnt enough.

@mortenmoulder
Copy link
Author

@Hellowlol That log is the only log there is from when I start playing a video. I run it in Docker and on an unRAID server - not sure if that changes anything.

@Hellowlol
Copy link
Owner

Hmm. Maybe you got a new session key. That one is used to keep track of what item that has been watched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants