Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fryfrog
fryfrog / FixPermissions.sh
Last active March 29, 2024 13:09
An NZBGet post processing script that sets user, group and permissions of folders and files.
#!/bin/bash
################################################################################
### NZBGET POST-PROCESSING SCRIPT ###
# Change user:group ownership and folder/file permission.
################################################################################
### OPTIONS ###
@fryfrog
fryfrog / Android-SHIELD Android TV.xml
Last active November 8, 2022 18:31
A customized Plex profile for the Nvidia Shield, which goes in ./Library/Application Support/Plex Media Server/Profiles/
<!-- Put in ./Library/Application Support/Plex Media Server/Profiles/Android-SHIELD Android TV.xml -->
<!-- Author: Donald Webster fryfrog@gmail.com -->
<?xml version="1.0" encoding="utf-8"?>
<Client name="SHIELD Android TV">
<Identification>
<Header name="User-Agent" substring="SHIELD Android TV" />
</Identification>
<TranscodeTargets>
<VideoProfile container="mkv" codec="h264" audioCodec="aac" context="streaming" />
<MusicProfile container="flac" codec="flac" id="StereoMusicTranscodeProfile" />
@fryfrog
fryfrog / radarr_label_change.sh
Last active April 1, 2023 06:17
A Radarr post processing script to change the rTorrent label after import.
#!/bin/bash
# This script uses the xmlrpc command from the xmlrpc-c package to change the label of an imported torrent in rTorrent.
# First argument is host
host="${1:-localhost}"
# Second argument is port
port="${2:-9082}"
@fryfrog
fryfrog / sonarr_label_change.sh
Last active January 6, 2022 11:29
A Sonarr post processing script to change the rTorrent label after import (unnecessary in v3 due to Post-Import Category).
#!/bin/bash
# This script uses the xmlrpc command from the xmlrpc-c package to change the label of an imported torrent in rTorrent.
# First argument is host
host="${1:-localhost}"
# Second argument is port
port="${2:-9081}"
@fryfrog
fryfrog / sonarr_symlink_torrent.sh
Last active January 8, 2022 09:23
A Sonarr post processing script to turn copied torrent imports into symlinks, strongly encourage hard link setup instead.
@fryfrog
fryfrog / radarr_symlink_torrent.sh
Last active September 29, 2023 15:58
A Radarr post processing script to turn copied torrent imports into symlinks, strongly encourage hard link setup instead.
@fryfrog
fryfrog / radarr_cleanup_packed_torrent.sh
Last active March 29, 2023 17:21
A Radarr post processing script to remove the video file from packed torrents, modified version of subzero79/87a347a07964390884c9
#!/bin/bash
# Examples for testing
# radarr_moviefile_sourcefolder="/data/torrent/movies/Justice.League.2017.1080p.HDRip.X264.AAC-m2g" radarr_moviefile_sourcepath="/data/torrent/movies/Justice.League.2017.1080p.HDRip.X264.AAC-m2g/Justice.League.2017.1080p.HDRip.X264.AAC-m2g.mkv"
# Instructions
# Put this script somewhere on your file system like /usr/local/bin and make it executable.
#
# In Radarr, Settings -> Connect add a Custom Script
# On Grab: No
@fryfrog
fryfrog / sonarr_cleanup_packed_torrent.sh
Last active April 13, 2024 11:06
A Sonarr post processing script to remove the video file from packed torrents, modified version of subzero79/87a347a07964390884c9
#!/bin/bash
# Examples for testing
# sonarr_episodefile_sourcefolder="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD" sonarr_episodefile_sourcepath="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv"
# Instructions
# Put this script somewhere on your file system like /usr/local/bin and make it executable.
#
# In Sonarr, Settings -> Connect add a Custom Script
# On Grab: No