Created
October 14, 2019 16:45
-
-
Save John-Gee/4818b42424262b1993a336d852007612 to your computer and use it in GitHub Desktop.
kodi-refresh-noactors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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