To list the full path of all watched files that are still accessable: (assuming the sql query was saved to list-watched-files.sql
)
sqlite3 ~/.kodi/userdata/Database/MyVideos90.db < list-watched-files.sql | xargs -L 1 -I filename ls "filename" 2>/dev/null
Kodi uses sqlite databases, located in ~/.kodi/userdata/Database/
. The video database is MyVideosXX.db
, where XX is the version (MyVideos90.db
on OSMC on 2015-05-09)