question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bookmark position is wrong after seeking to end

See original GitHub issue

Bug report

Your Environment

  • Netflix add-on version: 1.10.1
  • Operating system version/name: Raspberry Pi OS (Debian Buster)
  • Device model: Pi 4

Used Operating system:

  • Android
  • iOS
  • Linux
  • OSX
  • Raspberry-Pi
  • Windows

Describe the bug

I typically seek to end (usually up arrow, +10 minutes) to stop the videos, this was working fine up until recently. What seems to happen now is the video shows as partially watched (about 10 minutes). My guess is this is related to commit a24c548ecee761790096ce8593af764b22323acd, as what Kodi thinks is the bookmark position is the amount that I seeked. This also happens if I do right arrow 3 or 4 times (it will be around 2-3 minutes as the bookmark position).

This seems to be cosmetic/caching on the addon side, because on Netflix the bookmark position shows around ~39 minutes which is around where I used the seek.

Expected behavior

Bookmark position on Netflix & Kodi should be runtime of video.

Actual behavior

Bookmark position on Kodi is roughly the amount of time seeked forward. On Netflix it is the time in the video where I seeked forward (probably the last keepAlive?).

Steps to reproduce the behavior

  1. Start video
  2. Seek to a few minutes before end
  3. Let keepAlive event go out
  4. Seek to end

Possible fix

Debug log

The debug log can be found from this link: kodi.log

Additional context or screenshots (if appropriate)

screenshot000

Installation

  • I’m using other Netflix Repo: CastagnaIT
  • I’m using a different source

Other information

I have also occasionally received this back trace, but I haven’t been able to reproduce it yet with debugging:

2020-10-25 17:54:54.167 T:2666516688   ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
                                              File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/services/playback/action_controller.py", line 90, in onNotification
                                                self._on_playback_seek(json.loads(data)['player']['seekoffset'])
                                              File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/services/playback/action_controller.py", line 138, in _on_playback_seek
                                                player_state = self._get_player_state(time_override=time_override)
                                              File "/home/kodi/.kodi/addons/plugin.video.netflix/resources/lib/services/playback/action_controller.py", line 199, in _get_player_state
                                                player_state['percentage'] = player_state['percentage'] / player_state['elapsed_seconds'] * elapsed_seconds
                                            ZeroDivisionError: float division by zero

This I suspect is related to the same commit mentioned earlier.

Screenshots

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
CastagnaITcommented, Nov 6, 2020

@fernandog I saw the video and you are talking about the Kodi player this add-on has no control over the playback

so your problem must be reported on Kodi, then not here, i can do nothing here

if you are using some kind of Kodi OS like CoreElec you have to report to they repository/forum if you are using non-original skins before report you have to switch/test on the original Kodi skin

1reaction
wagnerchcommented, Oct 31, 2020

That’s the change I did as well and it’s been working on Kodi 18.9 with no problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem on position of bookmarks in PDF - TeX
The hierarchy of levels (that's why it is called level) in book class, is with their associated numbers, starting from top to bottom....
Read more >
Bookmarks jump back after dragging them to new position on ...
The bookmark should stay on its new position. What happens instead? It jumps back after approximately half a second.
Read more >
how do I return to same location on bookmark after opening ...
I am in main bookmark page. Scroll down to middle of bookmark and select a bookmarked website. Click on website to view. Then...
Read more >
Setting a Table Position with a Bookmark | Microsoft Learn
As a rule, callers should seek through no more than 50 rows with SeekRow; IMAPITable::SeekRowApprox should be used with larger numbers of rows....
Read more >
Tracking processed data using job bookmarks - AWS Glue
With job bookmarks, you can process new data when rerunning on a scheduled interval. ... For information about resolving common causes of this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found