Repository navigation
Scrobbles after minutes #80
Description
Activity
When you use streaming addons instead of watching locally, they buffer 100% stream in small increments, which is reported to Kodi player.
I should have said this is playing from my nfs shares
Do you have kodi logs with correct percentage data?
i do but its 500mb. where do you want me to ul
Please search only the relevant part for 1 episode\movie and remove any tokens when sharing
these are today's entries
2025-11-14 15:45:39.083 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:45:39.083 T:3063 debug : -- Simkl: sender False
2025-11-14 15:45:43.688 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:45:43.689 T:3063 debug : -- Simkl: sender False
2025-11-14 15:45:43.689 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:45:43.689 T:3063 debug : -- Simkl: sender False
2025-11-14 15:45:45.892 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:45:45.892 T:3063 debug : -- Simkl: sender False
2025-11-14 15:47:57.833 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:47:57.833 T:3063 debug : -- Simkl: sender False
2025-11-14 15:47:57.933 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:47:57.934 T:3063 debug : -- Simkl: sender False
2025-11-14 15:47:58.134 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:47:58.134 T:3063 debug : -- Simkl: sender False
2025-11-14 15:49:21.317 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:49:21.318 T:3063 debug : -- Simkl: sender False
2025-11-14 15:49:21.418 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:49:21.418 T:3063 debug : -- Simkl: sender False
2025-11-14 15:49:21.619 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:49:21.619 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:03.351 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:03.351 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:03.452 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:03.452 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:03.652 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:03.653 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:48.804 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:48.804 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:48.904 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:48.904 T:3063 debug : -- Simkl: sender False
2025-11-14 15:50:49.105 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:50:49.105 T:3063 debug : -- Simkl: sender False
2025-11-14 15:51:32.022 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:51:32.022 T:3063 debug : -- Simkl: sender False
2025-11-14 15:51:32.123 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:51:32.123 T:3063 debug : -- Simkl: sender False
2025-11-14 15:51:32.323 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:51:32.324 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:12.712 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:12.712 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:12.812 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:12.813 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:13.013 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:13.013 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:40.171 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:40.171 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:40.271 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:40.271 T:3063 debug : -- Simkl: sender False
2025-11-14 15:52:40.372 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:52:40.372 T:3063 debug : -- Simkl: sender False
2025-11-14 15:54:31.006 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:54:31.006 T:3063 debug : -- Simkl: sender False
2025-11-14 15:54:54.542 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:54:54.542 T:3063 debug : -- Simkl: sender False
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: sender False
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: sender False
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: sender False
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:55:00.713 T:3063 debug : -- Simkl: sender False
2025-11-14 15:56:03.107 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:56:03.107 T:3063 debug : -- Simkl: sender False
2025-11-14 15:56:14.330 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:56:14.331 T:3063 debug : -- Simkl: sender False
2025-11-14 15:57:17.986 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:57:17.986 T:3063 debug : -- Simkl: sender False
2025-11-14 15:57:21.597 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:57:21.598 T:3063 debug : -- Simkl: sender False
2025-11-14 15:57:31.212 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:57:31.213 T:3063 debug : -- Simkl: sender False
2025-11-14 15:57:31.213 T:3063 debug : -- Simkl: Unknown type tvshow
2025-11-14 15:59:38.522 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:38.522 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:38.522 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:38.522 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:38.622 T:3063 debug : -- Simkl: get setting autoscrobble = true
2025-11-14 15:59:38.660 T:3063 debug : -- Simkl: Full: {'episode': 1, 'file': '/mnt/kodi-media/tv-intenso/Slow Horses/Season 5/Slow Horses - S05E01 - Bad Dates WEBDL-2160p.mkv', 'genre': ['Suspense', 'Thriller'], 'id': 9234, 'imdbnumber': '11175982', 'label': 'Bad Dates', 'season': 5, 'showtitle': 'Slow Horses', 'title': 'Bad Dates', 'tvshowid': 660, 'type': 'episode', 'uniqueid': {'sonarr': '10359', 'tvdb': '11175982'}, 'year': 2025, 'ids': {'tvdb': '372264', 'tmdb': '95480'}}
2025-11-14 15:59:38.661 T:3063 debug : -- Simkl: get setting autoscrobble = true
2025-11-14 15:59:38.661 T:16772 debug : -- Simkl: in tracker thread
2025-11-14 15:59:38.661 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:38.661 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:38.661 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:38.661 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:40.661 T:16772 debug : -- Simkl: get setting min-length = 5
2025-11-14 15:59:40.662 T:16772 debug : -- Simkl: get setting scr-pct = 70
2025-11-14 15:59:42.267 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:42.267 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:42.367 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:42.367 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:42.367 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:42.367 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:42.368 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:42.368 T:3063 debug : -- Simkl: sender False
2025-11-14 15:59:42.468 T:3063 debug : -- Simkl: onNotification
2025-11-14 15:59:42.468 T:3063 debug : -- Simkl: sender False
2025-11-14 16:00:18.154 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:00:18.154 T:3063 debug : -- Simkl: sender False
2025-11-14 16:00:29.126 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:00:29.126 T:3063 debug : -- Simkl: sender False
2025-11-14 16:01:18.683 T:16772 debug : -- Simkl: MARK: {'type': 'shows', 'title': 'Slow Horses', 'season': 5, 'episode': 1, 'ids': {'tvdb': '372264', 'tmdb': '95480'}}
2025-11-14 16:01:18.683 T:16772 debug : -- Simkl: Send: {"shows": [{"title": "Slow Horses", "ids": {"tvdb": "372264", "tmdb": "95480"}, "seasons": [{"number": 5, "episodes": [{"number": 1}]}]}]}
2025-11-14 16:01:18.900 T:16772 debug : -- Simkl: get setting bubble = true
2025-11-14 16:01:18.902 T:16772 debug : -- Simkl: in bubble
2025-11-14 16:01:18.902 T:16772 debug : -- Simkl: Show Bubble
2025-11-14 16:01:18.902 T:16772 debug : -- Simkl: track stop
2025-11-14 16:03:56.774 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:03:56.774 T:3063 debug : -- Simkl: sender False
2025-11-14 16:03:57.483 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:03:57.488 T:3063 debug : -- Simkl: sender False
2025-11-14 16:10:46.620 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:10:46.621 T:3063 debug : -- Simkl: sender False
2025-11-14 16:11:49.858 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:11:49.858 T:3063 debug : -- Simkl: sender False
2025-11-14 16:14:55.957 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:14:55.958 T:3063 debug : -- Simkl: sender False
2025-11-14 16:14:56.690 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:14:56.690 T:3063 debug : -- Simkl: sender False
2025-11-14 16:14:56.891 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:14:56.891 T:3063 debug : -- Simkl: sender False
2025-11-14 16:14:57.595 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:14:57.595 T:3063 debug : -- Simkl: sender False
2025-11-14 16:14:57.595 T:3063 debug : -- Simkl: Stop clear
2025-11-14 16:15:20.472 T:16985 debug : Recaching image '/home/osmc/.kodi/addons/script.simkl/resources/icon.png' to 'c/c23beee3.png':
2025-11-14 16:15:32.119 T:16985 debug : Recaching image '/home/osmc/.kodi/addons/script.simkl/resources/fanart.jpg' to '2/2244ec8e.jpg':
2025-11-14 16:15:32.767 T:2970 debug : SetItem - Addon with id script.simkl not found locally.
2025-11-14 16:15:32.995 T:2970 debug <CAddonSettings[0@script.simkl]>: trying to load setting definitions from old format...
2025-11-14 16:16:00.042 T:2970 debug <CAddonSettings[0@script.simkl]>: trying to load setting definitions from old format...
2025-11-14 16:16:00.135 T:3063 debug : -- Simkl: CHANGED
2025-11-14 16:17:02.097 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:17:02.098 T:3063 debug : -- Simkl: sender False
2025-11-14 16:18:30.618 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:18:30.618 T:3063 debug : -- Simkl: sender False
2025-11-14 16:19:33.274 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:19:33.274 T:3063 debug : -- Simkl: sender False
2025-11-14 16:24:47.886 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:24:47.886 T:3063 debug : -- Simkl: sender False
2025-11-14 16:26:42.947 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:26:42.947 T:3063 debug : -- Simkl: sender False
2025-11-14 16:26:50.338 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:26:50.339 T:3063 debug : -- Simkl: sender False
2025-11-14 16:28:06.110 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:28:06.110 T:3063 debug : -- Simkl: sender False
2025-11-14 16:28:13.529 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:28:13.529 T:3063 debug : -- Simkl: sender False
2025-11-14 16:28:15.031 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:28:15.032 T:3063 debug : -- Simkl: sender False
2025-11-14 16:28:21.969 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:28:21.970 T:3063 debug : -- Simkl: sender False
2025-11-14 16:28:21.970 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:28:21.970 T:3063 debug : -- Simkl: sender False
2025-11-14 16:29:15.341 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:29:15.341 T:3063 debug : -- Simkl: sender False
2025-11-14 16:29:41.503 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:29:41.503 T:3063 debug : -- Simkl: sender False
2025-11-14 16:31:27.160 T:3063 debug : -- Simkl: onNotification
2025-11-14 16:31:27.160 T:3063 debug : -- Simkl: sender Falsewe need more debug information for this
is it possible for you to open the addon script and add log line there?C:\Users***** YOUR USER ****\AppData\Roaming\Kodi\addons\script.simkl\resources\lib\engine.py
find there a line
xbmc.sleep(2000)
and add on next line this
log(f"Progress: {self.getTime()}/{total_time} = {percentage}%")tabs\spaces before the line are important
then restart kodi and make the test once moreokay. have done that. will test tonight when watching something and report back.
thanks for the help
Reacted by IchikaWith that line added, scrobbling does not occur at all
sorry for the delay - been out of the country. added the line you said ( and deleted the old one) - still not scrobbling
This is to check the logs if Kodi sends the correct player progress in your case
i see, but it seems to be a regression as now nothing scrobbles
new logs with the snippet you sent.
2025-12-0207:28:00.364 T:2959 info : CAddonMgr::FindAddons: script.simkl v3.2.4 installed
2025-12-02 07:28:02.149 T:2959 debug : LocalizeStrings: loaded 25 strings from file /home/osmc/.kodi/addons/script.simkl/resources/language/resource.language.en_gb/strings.po
2025-12-02 07:28:02.875 T:2959 debug : CServiceAddonManager: starting script.simkl
2025-12-02 07:28:03.083 T:3059 debug : CPythonInvoker(8, /home/osmc/.kodi/addons/script.simkl/service.py): start processing
2025-12-02 07:28:05.942 T:3059 debug : CPythonInvoker(8, /home/osmc/.kodi/addons/script.simkl/service.py): the source file to load is "/home/osmc/.kodi/addons/script.simkl/service.py"
2025-12-02 07:28:05.942 T:3059 debug : CPythonInvoker(8): /home/osmc/.kodi/addons/script.simkl
2025-12-02 07:28:05.942 T:3059 debug : CPythonInvoker(8, /home/osmc/.kodi/addons/script.simkl/service.py): entering source directory /home/osmc/.kodi/addons/script.simkl
2025-12-02 07:28:05.943 T:3059 debug : CPythonInvoker(8, /home/osmc/.kodi/addons/script.simkl/service.py): instantiating addon using automatically obtained id of "script.simkl" dependent on version 3.0.0 of the xbmc.python api
2025-12-02 07:28:13.792 T:3059 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'SyntaxError'>
Error Contents: invalid syntax (engine.py, line 142)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.simkl/service.py", line 15, in
from resources.lib import engine
File "/home/osmc/.kodi/addons/script.simkl/resources/lib/engine.py", line 142
log(f"Progress: {self.getTime()}/{total_time} = {percentage}%")
^
SyntaxError: invalid syntax
-->End of Python script error report<--2025-12-02 07:28:13.792 T:3059 debug : onExecutionDone(8, /home/osmc/.kodi/addons/script.simkl/service.py)`
the addition:
`def _thread_tracker(self): log("in tracker thread") xbmc.sleep(2000) total_time = int(self.getTotalTime()) total_time_min = int(get_setting("min-length")) perc_mark = int(get_setting("scr-pct")) self._is_detected = True timeout = 1000 log(f"Progress: {self.getTime()}/{total_time} = {min(99, 100 * self.getTime() / max(120, total_time))}%") and after timeout = 1000`ok, looks like you have python 2,
then the line should be like this
log("Progress: {}/{} = {}%".format(self.getTime(), total_time, percentage))
or like this
log("Progress: {0}/{1} = {2}%".format(self.getTime(), total_time, percentage))
and check my screenshot above, spaces\tabs before the line(like other lines) are importantI'm on python 3
new line should work everywhere, try it. If the error still exists, make a screenshot how did you paste it, or use ``` triple to quote the code. Because in your message code formatting is broken
doh! I see it now. Will amend. Ta



Hi,
Many times scrobbling begins when I'm only a minute or so into a movie or TV show, not at the 70 percent it's set at.
Thanks