Created
April 12, 2020 10:25
-
-
Save PieGuy314/8a791a55fd4b6c7c991270b50307369d to your computer and use it in GitHub Desktop.
List parent dirs of watched movies
This file contains 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
/bin/sh | |
curl --silent --user ${USER}:${PASS} --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"filter": {"field": "playcount", "operator": "greaterthan", "value": "0" }, "properties": [ "file" ] }, "id":"libMovies" }' --header 'content-type: application/json;' http://${IP_ADDR}:8080/jsonrpc | jq '.result | .movies | .[] | ."file"' | tr -d \" | awk -F/ '{print $6}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment