2023-03-13, 00:28
I have a script that downloads a video every day. It downloads to the same place every time (this allows me to have it in my Favorites). It's not in my video library (I don't want it there since it has no TVDB entry and I don't keep old episodes anyway).
Everything works quite well, but there is one remaining annoyance: when I watch it, I tend not to finish. When I want to watch the next day's, it prompts me to resume where I left off before. I want to clear that progress when my script updates the file.
Is there a JSON command that I can run with my updating script so that when it overwrites that file, I can reset its progress? It seems like togglewatched is designed to be used with the GUI. This appears to be stored in userdata/addon_data/script.module.simplecache/simplecache.db, so maybe I'm actually looking for an sqlite command? (I don't know SQL, examples would help.)
Everything works quite well, but there is one remaining annoyance: when I watch it, I tend not to finish. When I want to watch the next day's, it prompts me to resume where I left off before. I want to clear that progress when my script updates the file.
Is there a JSON command that I can run with my updating script so that when it overwrites that file, I can reset its progress? It seems like togglewatched is designed to be used with the GUI. This appears to be stored in userdata/addon_data/script.module.simplecache/simplecache.db, so maybe I'm actually looking for an sqlite command? (I don't know SQL, examples would help.)