@ZileXa wrote:
The kodi_library plugin currently allows you to trigger a full library update each time a file has been moved. Kodi will scan all folders within its video library. This is a bit overkill to trigger every time for each file.
There is a different JSON call possible that will only scan 1 item or filder to the library. I used to use this sh script, triggered by Transmission:
/usr/bin/wget --header='Content-Type:application/json' --post-data='{"jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "osmc", "params": {"directory":"'"$TR_TORRENT_DIR"'/"}}' "http://localhost:8080/jsonrpc"
The "user" value didn't really matter. The "directory" does, in this example it is a Transmission parameter.
Would it be an idea to have the kodi_library plugin support such a JSON call in the future?
Posts: 2
Participants: 2