Commit Graph
27 Commits
Author SHA1 Message Date
Jurgis SakalauskasandClaude Opus 5.5 5e20067d6d send Kodi's watched history from a settings button
Not automatically on the service's first start any more: with several Kodi
installs, only the one whose history counts should send it. The button
("Send this Kodi's watched history to the server") asks first, shows progress
and can be cancelled; sending again is harmless, the server keeps newer state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:53:07 +03:00
Jurgis SakalauskasandClaude Opus 5.5 227a95abcd sync watched state with the server, single server url setting
- list items take playcount, resume point and last played from the server
  (folders: watched/total episodes), listings aren't cached
- background service (service.py) reports playback to <server>/api/state/<id>:
  every 30 s, on pause, stop and end; on first start it sends Kodi's existing
  watched history of this add-on to the server once
- one "Server URL" setting instead of api + video url (the old api url value,
  ending with /api, still works); no default address

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:27:37 +03:00
Jurgis Sakalauskas 2c32db5d94 add auth header 2023-11-30 12:49:52 +02:00
Jurgis Sakalauskas 2db147f29b fix select dialog 2023-01-20 11:16:11 +02:00
Jurgis Sakalauskas 3c585ed076 initial setup 2022-12-13 12:04:09 +02:00
Roman d06b57e196 Some code style updates 2021-01-17 09:38:35 +02:00
Roman 467b4073f8 Merge branch 'python3'
# Conflicts:
#	addon.xml
2021-01-17 08:29:32 +02:00
Roman 760092c297 Update comments 2021-01-17 08:27:10 +02:00
Roman Miroshnychenko 04da3801c2 Make the code Python 3 only 2020-04-03 12:55:27 +03:00
Roman Miroshnychenko 0ef4b3a6c0 Use future.iterkeys to iterate over dict keys 2018-01-09 16:04:48 +02:00
Roman Miroshnychenko 1fad214fc0 Convert code to Python 3-compatible 2018-01-09 15:55:21 +02:00
Roman Miroshnychenko 3833a3e2ac Use iterkeys() to iterate dict keys 2017-11-20 16:39:52 +02:00
Roman Miroshnychenko 807b88d48b Change link to Kodi Python API documentation 2017-09-29 14:41:49 +03:00
Roman Miroshnychenko a93f62e527 Add 'mediatype' property to ListItems 2017-09-29 14:39:35 +03:00
Roman Miroshnychenko a153be8e01 Add examples for setPluginCategory and setContent functions 2017-09-28 15:21:35 +03:00
Roman Miroshnychenko 8778f4e414 Use keys() method to return a list of dict keys 2017-09-26 15:27:02 +03:00
solsTiCe d'Hiver 9b9fd94051 Fix broken links 2017-07-19 16:41:31 +02:00
Roman Miroshnychenko 0508d92475 Add comments about generator functions 2016-12-15 14:12:10 +02:00
Roman Miroshnychenko 8c73b186be Use addDirectoryItem to add items one by one because addDirectoryItems hasn't proved to be effective 2016-12-15 14:05:38 +02:00
Roman Miroshnychenko 6cbdcceed0 Use get_url function to create plugin call URLs 2016-12-15 13:58:16 +02:00
Roman Miroshnychenko d2b013b733 Use urlencode to form a paramstring 2016-12-15 13:39:38 +02:00
Roman Miroshnychenko d9a43e2a02 Updates docstrings 2016-12-15 13:25:52 +02:00
Roman Miroshnychenko b790f231bf Removes forgotten legacy code 2016-04-11 18:12:57 +03:00
Roman Miroshnychenko (Work) 12ebf28f24 Updates code according to Kodi Jarvis API 2016-01-21 15:43:21 +02:00
Roman Miroshnychenko (Work) 69f7c3d2fc Adds a usage example for setArt method; minor code changes 2015-11-23 14:55:51 +02:00
Roman Miroshnychenko (Work) a433b569c4 Updated code using best practices, added setInfo for list items 2015-08-31 14:59:06 +03:00
Roman Miroshnychenko (Work) 242f52ff2c Renamed plugin script file 2015-08-31 13:18:12 +03:00