MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Community Skins and Plugins » MediaPortal Plugins



Reply
 
LinkBack Thread Tools Display Modes
Old 2008-08-09, 01:23   #1 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 68
Thanks: 0
Thanked 5 Times in 2 Posts

Country:


Default Apple trailers downloader(v0.065) *bugfix release*

Hi,

Recently created a C# console application, what it does:

1. Downloads recent HD and/or Highres apple trailers via the apple rss feed.
2. Makes folders with the movie title as the name
3. Downloads the movie posters and renames them to folder.jpg(for use in mediaportal en windows explorer)
4. Checks if you already have the trailer, not perfect atm but checks if the folder and file exists
5. Uses the tasksheduler library(CodeProject: A New Task Scheduler Class Library for .NET. Free source code and programming help) which was created by Dennis Austin.
This allows for the task scheduling feature.


To do list:

Cleanup managment <- set max trailer folder size and how long to keep the "old" trailers
MPI installer to make it a seamless install
Preview with poster

Download link:

*Version 0.065 - updated 20-09-08*


File-Upload.net - Apple-Downloader-v0.065.zip

Changes in this version:

1. Solved crashes when a webclient or local file had / in their name.


How to the install standalone program:

1. Unpack the zip and copy the contents of the "Standalone" to a seperate folder where you want to run it ( for instance C:\program files\apple trailer downloader\)
2. Use Apple_downloader_config.exe to setup your settings
3. Here you will need to set the default downloads directory and which version to download(hd/highres)
4. Run Apple_downloader.exe and it will download the latests trailers.


How to install mediaportal plugin:

1. Unpack the zip and copy the contents of the "mediaportal plugin" folder to your plugins/windows folder -> by default "C:\Program Files\Team MediaPortal\MediaPortal\Plugins\Windows\"

2. Start mediaportal configuration and navigate to the plugins section
3. Select the "Apple trailer downloader" and press config, this the same gui config as the standalone config.
4. Here you will need to set the default downloads directory and which version to download(hd/highres)
5. Next you can add it to the scheduler and set the wanted time to run it(weekly/daily also),

Screenshot:


Last edited by Rick164; 2008-09-20 at 11:23..
Rick164 is online now   Reply With Quote
3 Users Say Thank You:
Old 2008-08-09, 12:00   #2 (permalink)
Portal Tester
 
Seidelin's Avatar
 
Join Date: Aug 2006
Location: Denmark
Age: 34
Posts: 601
Thanks: 32
Thanked 44 Times in 34 Posts

Country:

My System

Default

Neat little tool. Works without issues here.
__________________
Only the best things in life are FREE!

Seidelin is offline   Reply With Quote
Old 2008-08-09, 13:12   #3 (permalink)
ash
Portal User
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Great tool.
Think of running this tool as a scheduled task on my mediacenter and place the trailers in a separate folder under my movies.
At least, so long the new MyTrailers plugin based on RSS is available.

Thanks!
ash is offline   Reply With Quote
Old 2008-08-09, 14:39   #4 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 68
Thanks: 0
Thanked 5 Times in 2 Posts

Country:


Default

Quote:
Originally Posted by ash View Post
Great tool.
Think of running this tool as a scheduled task on my mediacenter and place the trailers in a separate folder under my movies.
At least, so long the new MyTrailers plugin based on RSS is available.

Thanks!
Made it for the same purpose here, got tired of streaming them
Integration into mediaportal is going very well thanks to the good documentation from the mediaportal team , should be done tonight if no bugs popup.
You will be able to see the progress of the downloads in mediaportal and set the settings in mediaportal config.


/edit: made the config and the skin file, now need to figure out how to create a seperate thread and give some on-screen feedback(trailer downloaded etc..)
Screenshot of progress so far:



/edit2: will make a standalone version as well with a gui config tool to setup the folders and various other options.

Last edited by Rick164; 2008-08-10 at 18:55..
Rick164 is online now   Reply With Quote
Old 2008-08-10, 18:55   #5 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 68
Thanks: 0
Thanked 5 Times in 2 Posts

Country:


Default

Updated with a new config utility to set the folders and what version to download.
Rick164 is online now   Reply With Quote
Old 2008-08-11, 02:11   #6 (permalink)
Portal Member
 
Join Date: Jul 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I would suggest keeping a simple database or text file of already downloaded trailers using the "id" in the feeds as done in the bash script I wrote and posted here ( MyTrailers ). You'll want to have something to purge the database of older entries after a while but I've to determine how long a while is. I haven't had a single duplicate or re-download of trailer since I wrote the script using this method. I'm wondering why you're making separate folders for each trailer downloaded?
lstepnio is offline   Reply With Quote
Old 2008-08-11, 18:08   #7 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 68
Thanks: 0
Thanked 5 Times in 2 Posts

Country:


Default

Yeah working on that now , currently checks the filesize from the local .mov and remote .mov(for failed/incomplete downloads) and also matches the id's from the apple rss feed.
Will use an xml file for the "database", should function just as good with a little overhead.
Purging can be done by adding a date in the xml, then on every run it will check it and if it gets to old and it will purge the old items(maybe even the local .mov files).
And will add an option where you set how long you want keep old trailers.

I'm using a folder per trailer because then you can create a folder.jpg in that folder and have a nice thumbnails view in both mediaportal and windows explorer with the poster as the folder "icon".
Can make this optional of course, a new version will be out in a few days which should have all this included and probably more.

Also created another application in the meantime, which does something different:

1. fetches your personal bookmarked tv series from episodeworld.com
2. then searches for the most recently aired episode of the shows on newzbin.com and checks the different releases(default downloads the hd720p/hdtv version)
3. adds them to sabnzbd+

This way it automates the series download and you don't have to bother checking for them, just have to bookmark your shows on episodeworld and it will download the recent episodes when they air.
And if you are using the mp-tvseries plugin it will automatically import them there.
But dunno if anyone is interested in such an app so haven't posted it.

Last edited by Rick164; 2008-08-11 at 20:06..
Rick164 is online now   Reply With Quote
Old 2008-08-11, 23:51   #8 (permalink)
Portal Member
 
Join Date: Jan 2007
Posts: 111
Thanks: 7
Thanked 0 Times in 0 Posts


Default

holy mother of god Rick, i have been looking for something like that forever, i am definately interested in the tv program
hermy65 is offline   Reply With Quote
Old 2008-08-11, 23:55   #9 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 68
Thanks: 0
Thanked 5 Times in 2 Posts

Country:


Default

Will release it then , need to make litttle config gui for it so it's easy to setup first but shouldn't take too long.
It's a console application which can be scheduled via the windows task sheduler, i normally run it twice a day(15:00 and 19:00 GMT+1) because then most of the series are released.

Last edited by Rick164; 2008-08-12 at 00:11..
Rick164 is online now   Reply With Quote
Old 2008-08-12, 11:52   #10 (permalink)
Portal Member
 
Kossan's Avatar
 
Join Date: Aug 2007
Age: 26
Posts: 94
Thanks: 16
Thanked 0 Times in 0 Posts

Country:

My System

Default

Thanks! The Apple Trailer downloader is great, if it can be intigrated into MP configuration with a scheduler then this is a killer-plugin!
Kossan is offline   Reply With Quote
Reply

Bookmarks

Tags
apple, bugfix, downloaderv, release, trailers

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
YouTube works, Apple trailers don't teoh OnlineVideos 12 2009-05-26 22:53
OnlineVideos Plugin (now with Apple trailers) (v0.32 01-28-2008) gregmac45 OnlineVideos 702 2009-01-18 17:05
No picture with Apple trailers AndersDK OnlineVideos 2 2008-04-29 12:47
Apple Trailers Question hermy65 OnlineVideos 0 2008-03-02 14:51


All times are GMT +1. The time now is 23:58.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden