-
Notifications
You must be signed in to change notification settings - Fork 20
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
Addon forgets what was already seen #88
Comments
"Resume from" and the check mark for watched programs works perfect for me. It works consistently in every menu throughout the whole addon. @dagwieers Can you specify a bit more when it doesn't work for you? |
@mediaminister It's simple, I don't know when it started, but I can see that older content is no longer tagged as seen. Newer content is correctly tagged as seen, but I don't know for how long until that is "forgotten" too. I was hoping maybe adding an dbid or something like that could help in better retaining this kind of information ? |
It's hard to know if it is fixed unless it happens again (but this time I'll hopefully be more aware to when it exactly started to happen). |
@pietje666 Does it have to say
I may have inadvertently removed the in()... |
Not sure, i remembered that i copied it from another addon. Since i could not find the culprit |
That is not the cause, self._handle is already an int: https://github.com/pietje666/plugin.video.vrt.nu/blob/c25ac8c8f6924b337620a280811c9ffc970d5319/plugin.video.vrt.nu/addon.py#L21 I think we first have to understand how this functionality works before messing around. |
Agreed, and always document why something is done especially if it is not obvious. PS For some of the metadata I map to ListItem InfoLabels, I am not sure if it has any effect. Some of them at least don't have a visual effect. I think we may have to re-evaluate this later. |
Also leave the possibility open that for this issue either Kodi did something wrong, or I did something wrong. I have a setup with multiple LibreELEC devices uses a shared MySQL database for keeping track of what has been watched. |
I think I got a clue. Kodi watched status (playCount value in files table in Kodi MyVideo db files) is probably based on the plugin://plugin.video.vrt.nu/ url's (strFilename value in db). For example: |
That makes a lot of sense, but I wonder if there is a way to (rather than the URL) give it a another identifier that is stable for the future. So either the most basic URL, or simply the video_id (which should be stable). Is that not what the dbid is for ? I have a patch available for this, but didn't know how to test it. |
I did a little test and indeed the url is the unique identifier to store playcount and "resume from" bookmarks. I did not yet found the time to investigate this thoroughly, but I think that to make use of Only when you play an item, a minimum of data is stored to the database to make playcount and "resume from" functionality work. |
Hmm, that looks like a design issue (if we can't add a unique identifier). As it's easy to understand that those URLs are not guaranteed to be identical. To me this is not a big issue, but we may want to be sure we are not adding/changing that URL in the future. Maybe sorting by key to ensure that the order is predictable. |
I think a better interface using script.module.routing (#103) is the solution to his. (So we don't have to overload the current |
Describe the bug
I don't know yet what caused this, and I can't remember having seen this in the past usage of the addon. But stuff I have already seen is no longer marked as such, especially if it's been some time.
I would expect every item has a unique identifier and this identifier is used to recognize if it was seen before (stored somewhere in an internal database). But I don't think we store such an identifier, so at some point it gets lost if the content is "rewritten".
The text was updated successfully, but these errors were encountered: