Skip to content

bash script to automate ripping TV show disc sets en masse

Notifications You must be signed in to change notification settings

demonfoo/autorip

Repository files navigation

autorip

This is a tool (intended to be cross-platform for anything with bash) to handle all the following tasks:

  • Ripping discs (via dvdbackup for DVDs, or makemkvcon for Blu-ray Discs and UltraHD Blu-ray Discs, if you have it and are on a supported OS).
  • Guessing the series, season (as applicable) and disc number(s) based on volume labels, or prompting for the necessary info (which it doesn't have to do often, but it will when needed).
  • Getting TV show metadata via TheTVDB. (This does require you to have an account, because that's how they work now.)
  • Mapping titles from the disc(s) to episodes.
  • Remuxing/transcoding episodes from discs to a Plex-friendly file structure.

Much of the above is at least mostly working. Remuxing/transcoding is currently still very much a work-in-progress, but I am actively working toward making it happen.

This requires the following tools:

  • curl - for talking to TheTVDB.
  • jq - for parsing/manipulating JSON from various sources.
  • lsdvd - I think the name says it all.
  • python-yq - needed for using lsdvd's XML output mode and transforming the output into JSON.
  • dvdbackup - I think the name says it all.
  • lsof - for checking on dvdbackup's progress.
  • MakeMKV - optional, but needed for ripping Blu-ray Discs. So if you intend to do it...
  • udftools - needed for identifying Blu-ray Discs.
  • smartmontools - Only needed on OpenBSD, because it lacks other tools for inquiring for optical drive information.
  • Perl - several processing filters are implemented in it.
  • Perl JSON module - you know, for kids!
  • Perl Array::Utils module - for some data structure processing tasks.

Known issues

There are series/seasons that I know there are issues with:

  • Terminator: The Sarah Connor Chronicles Season 1. Many episodes don't have their own titles, and are just tossed together. Will look for a solution.
  • Fringe Season 1: Same as above. (Dear Warner Bros: This is bad authoring.)
  • Terminator: The Sarah Connor Chronicles Season 2. A few episodes don't have their own titles. Looking for a solution.
  • Fringe Season 2: Same as above.

More will likely be added, but the vast majority of seasons I own on disc work, so most should more generally.

About

bash script to automate ripping TV show disc sets en masse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published