2014-02-07, 06:25
[/b]I've written a small script to scrape hd-trailers.net and download trailers from apple trailers. I use the Cinema Experience script and hate waiting for trailers to stream so I thought I'd download them. I run this once a week, and it downloads new trailers, renames them and deletes the old trailers. If anyone on windows/mac uses this, please let me know if it works! I think it should do as it's written in python.
* Trailers can be downloaded at a resolution of 480/720/1080.
* Trailers that have been downloaded and are older than x days can be deleted.
* Trailers can be renamed with a custom string appended to the end of the filename. Cinema Experience script will only play trailers with a
filename ending in -trailer. This is set to happen by default, but can be changed to anything or nothing.
* HD-Trailers.net has multi-part trailers - ie trailer1, trailer2, trailer3, these can all be downloaded for a movie as well the extra clips, interviews
etc. Single trailers can be downloaded for a movie as well.
* XBMC-Trailer-Downloader can be run completely silently with no console output or debug file logging. Console output is enabled by default.
* Each subsection of HD-Trailers.net can be scraped, latest, most-watched, top-movies, opening-this-week and coming-soon. Please set a high value for num_to in the config.ini if you intend are scraping the whole site. Duplicates will not be downloaded.
Hope it's useful!
To install :
git clone https://github.com/nipponbob/XBMC-Traile...loader.git
pip install -r requirements.txt
cd XBMC-Trailer-Downloader
python trailer-dl.py
**Please modify the config.ini with your save location for trailers.**
** All other settings are changed from within config.ini**
pip install -r requirements.txt
cd XBMC-Trailer-Downloader
python trailer-dl.py
**Please modify the config.ini with your save location for trailers.**
** All other settings are changed from within config.ini**
* Trailers can be downloaded at a resolution of 480/720/1080.
* Trailers that have been downloaded and are older than x days can be deleted.
* Trailers can be renamed with a custom string appended to the end of the filename. Cinema Experience script will only play trailers with a
filename ending in -trailer. This is set to happen by default, but can be changed to anything or nothing.
* HD-Trailers.net has multi-part trailers - ie trailer1, trailer2, trailer3, these can all be downloaded for a movie as well the extra clips, interviews
etc. Single trailers can be downloaded for a movie as well.
* XBMC-Trailer-Downloader can be run completely silently with no console output or debug file logging. Console output is enabled by default.
* Each subsection of HD-Trailers.net can be scraped, latest, most-watched, top-movies, opening-this-week and coming-soon. Please set a high value for num_to in the config.ini if you intend are scraping the whole site. Duplicates will not be downloaded.
Hope it's useful!