Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions script.simkl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,8 @@
## TODO:
- [x] Make it work on Android

## Help Translate:
You can use Crowdin [https://crowdin.com/project/Kodi-add-on-for-Simkl](https://crowdin.com/project/Kodi-add-on-for-Simkl) to help translate this add-on into your language.

## Donations:
It would be very nice if you invite me for a cup of coffee:

Bitcoin address: 1PcbSQrBddJszsTiRhqHyLntp7Lxfuyaio

Thanks, you can write me an e-mail to [email protected] with your receipt, and I'll send you a photo drinking the cup of coffee you invited me to.

## Join the conversation:
- Discuss on Discord https://discord.gg/JRtwsfG
- Discuss on Discord [https://discord.gg/u89XfYn](https://discord.gg/u89XfYn)
- Post bugs, feature requests on Github https://github.com/SIMKL/script.simkl/issues

[license]: https://github.com/SIMKL/script.simkl/blob/master/LICENSE.txt
6 changes: 4 additions & 2 deletions script.simkl/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.simkl"
name="Simkl TV Tracker"
version="3.2.2"
version="3.2.3"
provider-name="David Davó, Simkl">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
Expand All @@ -25,8 +25,10 @@
</assets>
<language>en</language>
<news>
v3.2.3 (31-10-25)
- fixed bubble popup and autoscrobble settings
v3.2.2 (05-01-24)
- fixed new pything isAlive fn
- fixed new python isAlive function
v3.2 (22-09-22)
- right click, mark as watched/unwatched added
v3.1 (21-07-13)
Expand Down
3 changes: 3 additions & 0 deletions script.simkl/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v 3.2.3
- fixed bubble popup and autoscrobble settings

v 3.2.1
- is_live fixed

Expand Down
6 changes: 5 additions & 1 deletion script.simkl/resources/lib/api_simkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ def __init__(self):
self.isLoggedIn = False
self.loginInProgress = False

self.headers = {"Content-Type": "application-json", "simkl-api-key": APIKEY}
addon_version = __addon__.getAddonInfo("version")
kodi_version = xbmc.getInfoLabel("System.BuildVersion")
user_agent = "script.simkl/v{} / Kodi/{}".format(addon_version, kodi_version)

self.headers = {"Content-Type": "application-json", "simkl-api-key": APIKEY, "User-Agent": user_agent}
# set_setting('token', '')
token = get_setting('token')
if token:
Expand Down
7 changes: 5 additions & 2 deletions script.simkl/resources/lib/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, api):

def onPlayBackStarted(self):
self._stop_tracker()
if self._api.isLoggedIn:
if self._api.isLoggedIn and get_setting("autoscrobble").lower() in ['true', '1']:
self._detect_item()

def onPlayBackStopped(self):
Expand Down Expand Up @@ -122,6 +122,9 @@ def _detect_item(self):
self._run_tracker()

def _run_tracker(self):
if get_setting("autoscrobble").lower() not in ['true', '1']:
log("Auto-scrobble is disabled, skipping tracker")
return
self._playback_lock.set()
self._tracker = threading.Thread(target=self._thread_tracker)
self._tracker.start()
Expand Down Expand Up @@ -162,7 +165,7 @@ def _thread_tracker(self):
else:
log("Retrying")

elif success and bool(get_setting("bubble")):
elif success and (get_setting("bubble").lower() in ['true', '1']):
self._show_bubble(self._item)
break
except:
Expand Down
4 changes: 1 addition & 3 deletions script.simkl/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
</category>
<setting type="sep"/>
<category label="Options">
<setting label="32002" type="lsep"/>
<setting label="32003" type="bool" id="synclib" default="false" enable="false"/>
<setting label="Scrobbler" type="lsep"/>
<setting label="Auto-scrobble" type="bool" id="autoscrobble" default="true" enable="false"/>
<setting label="Auto-scrobble" type="bool" id="autoscrobble" default="true" enable="true"/>
<setting label="32006" type="slider" id="scr-pct" default="70" range="0,100" option="percent" enable="gt(-1,-2)" />
<setting label="32007" type="slider" id="sct-w-pct" default="10" range="0,100" option="percent" visible="false"/>
<setting label="32008" type="bool" id="bubble" default="true" enable="true"/>
Expand Down