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

Discussion in 'MediaPortal 1 Plugins' started by Rick164, Aug 9, 2008.

  1. Rick164 Portal Pro

    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:

    [IMG]
    leugim, baldur and Kossan like this.
    • Team MediaPortal

    Seidelin Test Group Manager

    Neat little tool. Works without issues here.
  2. ash New Member

    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!
  3. Rick164 Thread Starter Portal Pro

    Made it for the same purpose here, got tired of streaming them :p
    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:

    [IMG]

    /edit2: will make a standalone version as well with a gui config tool to setup the folders and various other options.
  4. Rick164 Thread Starter Portal Pro

    Updated with a new config utility to set the folders and what version to download.
  5. lstepnio Portal Member

    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 ( http://forum.team-mediaportal.com/plugins-47/mytrailers-42622/index11.html#post291349 ). 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?
  6. Rick164 Thread Starter Portal Pro

    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.
  7. hermy65 Portal Pro

    holy mother of god Rick, i have been looking for something like that forever, i am definately interested in the tv program
  8. Rick164 Thread Starter Portal Pro

    Will release it then :D , 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.
  9. Kossan Portal Pro

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

Share This Page

Users Viewing Thread (Users: 0, Guests: 0)

Running the latest version?
V1.2.3 - released April 2012
Releasenews | Download
Changelog
 | Requirements
opensource-logoTeam-MediaPortal 
About
Contact |  Press
Partners