"Mark as unwatched" and "reset resume position"
#1
How to do operations for videofile, such "Mark as unwatched" and "reset resume position" via python?
Reply
#2
Anybody, lazy guys!!!!
Reply
#3
Calling us forum users lazy is not going to score points....
Server: Windows Server 2016 Standard Hyper-V with Ubuntu Server VM, NFS shares and MySQL
Kodi: 2 Raspberry Pi 3 running Libreelec
My Setup thread | Setup Ubuntu / TVH / Schedules Direct
Reply
#4
Here you go:

JSON-RPC_API/v9 (wiki)

Everything you need to know to do what you want is in there.  Just construct a JSON call to Kodi with the right parameters and you're all set.
Providing a debug log: Log_file/Easy (wiki)
Leia Estuary mod: 333143 (thread)
Artist Slideshow: Add-on:Artist_Slideshow (wiki)
SpeedFan Information Display: Add-on:SpeedFan_Information_Display (wiki)
Reply
#5
Need ful python example , please with "Mark as unwatched" and "reset resume position"
Reply
#6
(2019-09-03, 05:25)pkscout Wrote: Just construct a JSON call to Kodi with the right parameters and you're all set.
How?
Reply
#7
"Lazy guy"

https://codedocs.xyz/xbmc/xbmc/group__py...9ed84ed846
JSON-RPC_API/v9 (wiki)
JSON-RPC_API/Examples (wiki)
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#8
If your Python add-on uses streamed video items (the kind of item that points back to the add-on itself using the plugin:// protocol, where you will then use xbmcplugin.setResolvedUrl(...) to start playback), then the JSON-RPC commands cannot be used to change these items yet. 
See here for more: 15897 (GH issue)
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
"Mark as unwatched" and "reset resume position"00