2020-11-11, 14:01
(2020-11-10, 23:42)SEIKT Wrote:(2020-11-10, 19:38)trixeo Wrote:The if statement on line 445 may be causing interference. In the code block are setproperty commands that modify the videos start time/resume time. I commented out the code that may interfere.(2020-11-10, 09:58)SEIKT Wrote: If you want to try your luck, test this code change to actions.py found in jellfin_kodi\objects. Refer to lines 68, 75, 81.Thank you for trying but that did not change anything :/ The episode gets marked as watched 10 seconds after I stop it, no matter where in the ep I stop it. Before those 10 seconds come to pass, it shows the resume symbol on it, _and_, here's a strange thing; it shows the real name of the file instead of the scraped information, and on the 11:th second it gets marked as watched and get the scraped name back. And IF I start the ep before those 10 seconds have passed, during which time it shows the real name of the mkv-file, I get the option to resume the ep, and it works! But I checked, that is also the exact same behavior as without the mod on lines 68, 75 and 81. I guess this is a clue for someone knowing what is happening during those 10 seconds.
https://paste.kodi.tv/okuqejumuh
I didn't add the code to prompt a resume menu but I added the code that should play the video at the resume point if there is one. Let me know if it does.
https://paste.kodi.tv/awifemukiq
After updating your code, when you've played a video can you refer to your Kodi log file and search for the following text:
SEIKT 1
SEIKT 2
SEIKT 3
SEIKT 4
SEIKT 5
SEIKT 6
It would help me understand which code is being executed if any.
Nothing in logs with SEIKT, so I guess it's not using that code when this happens. What I can see though in the logs is that u'Played' is mentioned twice in this line:
NOTICE: JELLYFIN.entrypoint.service -> INFO::jellyfin_kodi\entrypoint\service.py:252 [ UserDataChanged ] {u'UserId': u'4ebc62ee11d248b8b044c2a7c0030466', u'UserDataList': [{u'ItemId': u'6fa6a5ac3a6e9c9ecd8caaf810a951a4', u'Rating': None, u'IsFavorite': False, u'Played': True, u'PlayedPercentage': None, u'UnplayedItemCount': None, u'LastPlayedDate': u'2020-11-11T11:47:04.210526Z', u'Likes': None, u'Key': u'368643001004', u'PlayCount': 1, u'PlaybackPositionTicks': 0}, {u'ItemId': u'46bdfea1a9c7bd528a659a38a2309896', u'Rating': None, u'IsFavorite': False, u'Played': False, u'PlayedPercentage': None, u'UnplayedItemCount': 5, u'LastPlayedDate': None, u'Likes': None, u'Key': u'368643', u'PlayCount': 0, u'PlaybackPositionTicks': 0}]}