The new versions of MythVideo allow users to configure random trailer playback prior to watching a movie. In it’s current form, users must manually download trailers and assign them to the media on their system, which many people never take the time to do.
This bash script re-purposes the trailers’ folder and synchronizes the 40 most popular movie trailers on YouTube, with selectable video formats. This allows users to watch a random sampling of new and popular trailers whenever movie viewing begins.
[UPDATE]: YouTube has updated their site, and you must be using the version of youtube-dl released on 12/09/2010 or later. Most distributions do not come with this version. It can be found here: https://github.com/rg3/youtube-dl/raw/master/youtube-dl
Installation is simple and straightforward. Simply extractmythgettrailers .sh anywhere on a system with access to your trailers directory. Open up the script in vi or your favorite text editor to edit the configuration, and then schedule it to run as often as you like with cron:
ln -s /bin/mythgettrailers.sh /etc/cron.weekly
The following setup variables should be edited before running MythGetTrailers for the first time.
Set the following field to the same value as the trailer storage group in MythTV:
Set the following variable to the highest resolution format you would like the script to download. A listing of formats can be found at: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs
- Updated for new YouTube page
- Now focuses on top 20 trailers and the “latest” trailers
- Format bug fixed
Please do not distribute MythGetTrailers outside of this site. Directing links here will ensure the latest version of MythGetTrailers is always in circulation.
Download the latest version: mythgettrailers.0.03.tar.gz
Remember to check out the rest of the site!