Skip to content

Instantly share code, notes, and snippets.

View Arezhik's full-sized avatar

Josh F Arezhik

  • Salt Lake City
View GitHub Profile
@Arezhik
Arezhik / diskripper.sh
Created January 23, 2020 22:38 — forked from tacofumi/diskripper.sh
This script rips DVD/Blu-ray using makemkvcon. Use udev to invoke this script to auto-rip when disk is inserted. Some variables such as length of string to trim in order to get the title of movie may vary depending on your environment.
#!/bin/bash
{
echo $(date)
echo ">>>Disk found"
echo ">>>Setting the title..."
title=$(makemkvcon -r info)
title=`echo "$title" | grep "DRV:0\+"`
title=${title:53}