Skip to content

Instantly share code, notes, and snippets.

View whatyoubendoing's full-sized avatar

Benjamin HB whatyoubendoing

  • London, United Kingdom
  • 08:49 (UTC +01:00)
View GitHub Profile
@whatyoubendoing
whatyoubendoing / 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