I faced a lot of broken trailer links in my movie collection these days so I decided to switch over to store the trailers locally in my media folders.
To save a lot of time I've made this small bash script, which downloads the YT Trailer by fetching the TheMovieDB ID right out the existing movie nfo.
- Linux KnowHow
- A own TheMovieDB API (see https://developers.themoviedb.org/3 )
- youtube-dl / curl / jq
- Adjustment of the paths inside of the script
- A clean folder structure without additional and unnecessary nfo's
The trailers are going to be stored next to the movie with the prefix "-trailer".
You will get a trailerdl.log after each run to check which movies don't have a YT ID or if the download has failed.
Please visit https://themoviedb.org and edit or add new trailer links so other users can benefit. (I spent the last 2 hours adding 100< updated trailer url's)
And before I forget it:
The script is quick'n'dirty, but it's working. Feel free to adjust it if you want, but don't hope for support from my side -> Just sharing it.
If you want to say thanks: A beer is appreciated
Edited by sualfred, 16 May 2018 - 10:16 AM.