Skip to content

Instantly share code, notes, and snippets.

View cnewcome's full-sized avatar

Chris Newcomer cnewcome

  • Canonical
  • Madison, WI
View GitHub Profile
@cnewcome
cnewcome / plex-trailiers.sh
Last active May 19, 2017 23:51 — forked from jdpace/plex-trailiers.sh
Plex trailers
#!/bin/bash
# downloads all missing trailers - it goes through all your movies and matchs them up with an entry
# in plex, grabs the imdb id from plex, and then parses the trailer url from the imdb site, then passes
# that to youtube-dl to download the trailer, it skips entries that dont have a matching imdb entry
# or if the trailer already exists
# must have 'sqlite3' and 'youtube-dl' packages (apt-get install sqlite3 youtube-dl)
# set 'mpath' and 'pms' accordingly
export mpath="/Disk2/video/Movies/"
export pms="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/"