Release WatchedList - service to automatically save/restore watched state
(2017-12-28, 12:02)schapplm Wrote: The procedure of the addon for a database file on a network share is to copy it on the local filesystem (.kodi/userdata/addon_data/service.watchedlist/dbcopy or a similar path). Then the addon runs as normal and copies the file back to the network share.
So my guess is, that already the part of copying does not work for you. If you enable the debug logging (for kodi and watchedlist), your log file should contain something similar to this:

 Hello @schapplm ,

Thanks for the reply
From What I understood, the local part of the db file was failing.
Here is what I got in the log after turning debugging on:
 
Quote: 17:49:23.138 T:2123888928 NOTICE: service.watchedlist: Update Library Manual Run.
17:49:23.300 T:2123888928 NOTICE: service.watchedlist: created directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy
17:49:23.305 T:2123888928 DEBUG: CSMBFile::Open - opened smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db, fd=10001
17:49:23.312 T:2123888928 DEBUG: CSMBFile::Close closing fd 10001
17:49:23.313 T:2123888928 DEBUG: service.watchedlist: copied db file smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db -> /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy/watchedlist.db. Success: 1
17:49:23.315 T:2123888928 ERROR: service.watchedlist: Database error while opening /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy/watchedlist.db. 'file is encrypted or is not a database'
17:49:23.315 T:2123888928 NOTICE: service.watchedlist: Notification. Watchedlist: SQLite Error (WL DB): file is encrypted or is not a database
17:49:23.322 T:2123888928 WARNING: SMBFile::OpenForWrite() called with overwriting enabled! - smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db
17:49:23.324 T:18446744072108177696 DEBUG: ------ Window Init (DialogNotification.xml) ------
17:49:23.333 T:2123888928 DEBUG: CSMBFile::Close closing fd 10001
17:49:23.335 T:2123888928 DEBUG: service.watchedlist: copied db file /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy/watchedlist.db -> smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db. Success: 1
17:49:23.336 T:2123888928 NOTICE: service.watchedlist: Notification. Watchedlist: Error: Error opening WL-database
17:49:23.343 T:2123888928 WARNING: SMBFile::OpenForWrite() called with overwriting enabled! - smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db
17:49:23.352 T:2123888928 DEBUG: CSMBFile::Close closing fd 10001
17:49:23.354 T:2123888928 DEBUG: service.watchedlist: copied db file /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy/watchedlist.db -> smb://READYNAS/Backups/Kodi/watchedList_Kodi_addon/Backups/watchedlist.db. Success: 1
17:49:23.354 T:2123888928 INFO: CPythonInvoker(23, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.watchedlist/manual.py): script successfully run
17:49:23.673 T:2123888928 INFO: Python script stopped
17:49:23.674 T:2123888928 DEBUG: Thread LanguageInvoker 2123888928 terminating  

Is there something I am missing?


Edit: I tried renaming the local file in /addon_data/... into .old: same issue, the newly created file is not accessible
Guigui
Reply


Messages In This Thread
RE: WatchedList - service to automatically save/restore watched state - by guigui_bebert - 2017-12-28, 18:56
Logout Mark Read Team Forum Stats Members Help
WatchedList - service to automatically save/restore watched state3