Skip to content

Instantly share code, notes, and snippets.

@John-Gee
Created October 14, 2019 16:45
Show Gist options
  • Save John-Gee/4818b42424262b1993a336d852007612 to your computer and use it in GitHub Desktop.
Save John-Gee/4818b42424262b1993a336d852007612 to your computer and use it in GitHub Desktop.
kodi-refresh-noactors
#!/usr/bin/bash
sqlite3 ~/.kodi/userdata/Database/MyVideos116.db "SELECT idMovie from movie_view m WHERE NOT EXISTS(SELECT 1 from actor_link where medi
a_type==\"movie\" and media_id==m.idMovie );" | while read -r line; do echo "$line"; curl -X POST -H "Accept: application/json" -H "Con
tent-Type: application/json" -d '{"jsonrpc":"2.0","method":"VideoLibrary.RefreshMovie","params":{"movieid":'$line',"ignorenfo":true},"i
d":1}' -u kodi:kodi http://localhost:8080/jsonrpc; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment