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
| #!/bin/bash | |
| filePath="${1}" | |
| ##SONARR API CONSULT | |
| SONARR_HOST="10.10.10.12" | |
| SONARR_PORT="8989" | |
| SONARR_API="5215023779d84ad391719fc703bba5ba" | |
| CURL_API="X-Api-Key: $SONARR_API" | |
| URL_SONARR="http://$SONARR_HOST:$SONARR_PORT/api/" |
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
| #!/bin/bash | |
| ##KODI API RETRIEVE | |
| XBMCUSER="xbmc" | |
| XBMCPWD="xbmc" | |
| KODI_HOST="10.10.10.11:8080" | |
| Recent_added=$(curl -s -H 'content-type: application/json;' http://${XBMCUSER}:${XBMCPWD}@${KODI_HOST}/jsonrpc \ | |
| --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.GetRecentlyAddedEpisodes", |
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
| #!/bin/bash | |
| #sonarr_episodefile_sourcefolder="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD" | |
| #sonarr_episodefile_sourcepath="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv" | |
| sonarr_label="tv-sonarr" | |
| base_dir=$(basename $sonarr_episodefile_sourcefolder) | |
| if [ "${base_dir}" == "${sonarr_label}" ];then | |
| echo "Single file torrent" |
NewerOlder