Skip to content

Instantly share code, notes, and snippets.

@zilexa
zilexa / scantokodi.sh
Created July 15, 2016 19:27
Let Transmission notify Kodi of a finished download so that it will scan that particular file to the library (it will not do a full library update)
/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"