Release XBMC-Trailer-Downloader
#1
[/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.

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**

* 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!
Reply
#2
Another thing, can you download the poster also and rename for the same name of the movie? I would like to show in my costellation app als0.
Reply
#3
What is constellation? Sorry I've never heard of it. Do you want trailer01.mov and trailer01.jpg so that each trailer has a thumbnail? It shouldn't be hard to do as the poster is already on the page. Something along these lines?

Sample image
Reply
#4
Hey there It seems like an awesome script but can get it to work under windows. I tried as you instructed but comes with the error that argparse is not found on that version so I modified to 1.1 for windows it goes all well but after I run the script all it does is download a trailer of Lego that is suppossed to be 720p but it only is 80kb. and thats all the log says..

Any help would be awesome thanks so much for your effort.
Reply
#5
Hi, thanks for trying it out, I'm sure we can get it working.
Could you post the log to pastebin please and share the link. I'm at work now but I will take a look at it when I get home.
Reply
#6
Sure these are the 3 logs maybe you can work with:

1.- Info when i do the pip install : http://postimg.org/image/viu7ovqx1/

2.- Debug log : http://pastebin.com/wqHpJVCr

3.- My config ini: http://pastebin.com/6RqQKTj6

Thanks so much for your help really appreciated
Reply
#7
Everything seems fine with the logs. I have added more debug output to hopefully catch the error. I'm guessing it's something to do with Windows, but I'm just not sure what. Would you mind doing a 'git pull' to update your version to the latest which contains a lot more debug info. Also, could you run the script for around five or so minutes and then upload the log file to pastebin.

Thanks for being so patient, I really appreciate you taking the time to help me figure out why this isn't running on your system!
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC-Trailer-Downloader0