Skip to content

Instantly share code, notes, and snippets.

View 00defeat's full-sized avatar

Benjamin Bell 00defeat

  • London, United Kingdom
  • 23:23 (UTC +01:00)
View GitHub Profile
@00defeat
00defeat / convert-copy.sh
Created May 27, 2019 20:16
A shell script to add to Transmission so the downloads automatically get added to iTunes library. If conversion (with or without encoding) is required from MKV or AVI formats to MP4, this script automatically does that before adding to library. (HandBrakeCLI and FFMPEG required).
#!/bin/bash
# development
# if [ -z "$1" ]; then
# TR_DOWNLOADS="$TR_TORRENT_DIR/$TR_TORRENT_NAME"
# else
# TR_DOWNLOADS="$1"
# TR_TORRENT_NAME="Temp_Torrent_Name"
# fi