Trailers Plugin v1.3.0 (Play/Stream/DL for MovingPictures, My Films, My Videos..) [2020-02-23] (1 Viewer)

nicsergio

MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    @ltfearme

    first of all congratulations for the good job done with this plugin (y)

    I have recently implemented support for this plugin in ShortCut'er, it might be useful to map directly onto a remote button the call of the trailers plugin, even on displaying the list of movies, without going into the detail window.

    This works perfectly in Moving Pictures:
    2013-11-26_180609.jpg


    I noticed in your sources that, for MyVideos plugin, is managed only the recall by DialogVideoInfo.xml (windowID=2003), it would be possible to manage the call directly from myvideo.xml (ID=6)?

    thanks

    (sorry for bad english :()
     
    Last edited:

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,698
    7,083
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #34
    Hi @nicsergio,

    I will look at adding support for the main Video window as well in the next version (I will investigate at the very least) ;)

    Thanks for adding support in your plugin, im sure that will be useful for people!

    Cheers,
     

    Scrounger

    Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    513
    Stuttgart
    Germany Germany
    @ltfearme:

    If i understood the Skin Designer Guide correctly, your plugin read out directly the selectedItem values?
    Or is there also a way to define a hyperlinkparameter, for example just sending the imdb_id / tmdb_id / tvdb_id as loadparameter?
    This would be great to use your plugin with any plugin:)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,698
    7,083
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #36
    Hi @Scrounger,

    Currently the plugin doesn't support skin loading parameters i.e. it will detect the current window that the user is in and get details from the selected media. There is obviously a downside to that, that being the trailers plugin needs to to know about any 3rd party plugin to support trailers from (A plugin handler needs to be written).

    The advantage of doing it this way is that the trailers plugin can take the hard work away from the skin to figure out what details it needs like 'local filename', 'TMDb' , 'IMDb', 'Title', 'Year', 'Overview', 'Poster' (some of these are obviously not required for search but are for OSD of trailer playing).

    If you would like a plugin supported I can easily add it, it doesn't take much work to do. I can get all information I need either of two ways:
    1. via Skin Properties
    2. via Plugin API

    In a way skin properties are safest as there less likely to change and hence not break metadata retrieval down the track if the respective plugin decides to change the API, but either way is good. Sometimes I need to use a plugin's API because there is not enough information via skin properties.

    Some 3rd party plugins can even call the Trailers plugin themselves e.g. you can create a context menu item in your plugin or a skin button and hook that up to the trailers plugin e.g.

    Add the Trailers.dll reference and then add the following namespaces in your project:
    Code:
    using Trailers.Providers;
    using Trailers;
    Before you can invoke the Trailer search you need to create a MediaItem object e.g:
    Code:
    MediaItem trailerItem = new MediaItem
    {
      IMDb = movie.IMDBID,
      Plot = movie.Overview,
      Poster = movie.Images.Poster,
      Title = movie.Title,
      TMDb = movie.TMDBID,
      Year = movie.Year
    };
    Then simply call the Search method, it will display a menu once complete:
    Code:
    Trailers.Trailers.SearchForTrailers(trailerItem);
    Note: Right now there is no support for TVShows or Episodes but that will come soon I imagine. Also there is no online search for Title+Year only, currently it needs an IMDb or TMDb ID.

    I will improve the online search to accept Title+Year next for plugins that don't support IMDb/TMDb IDs e.g. Netflix.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,698
    7,083
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #37
    I will be releasing a new build shortly which will support trailers from My Videos Shares (ID: 6) and My Videos Database Views (ID: 25).

    If you are in Shares view AND don't have any data about the respective video in the database then it will only be able to do a local search for trailers based on the filename otherwise it will do the full local and online lookup.
     

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    I will be releasing a new build shortly which will support trailers from My Videos Shares (ID: 6) and My Videos Database Views (ID: 25).

    If you are in Shares view AND don't have any data about the respective video in the database then it will only be able to do a local search for trailers based on the filename otherwise it will do the full local and online lookup.
    nice work, will try it ASAP (y)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,698
    7,083
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #39
    New release available, see first post for download link:

    v1.0.4 [2013-11-29]
    • Added 'Title + Year' search from the themoviedb.org trailer provider. This will be useful for plugins that don't support IMDb or TMDb ID's or for people that don't have this information in their database.
    • Added support for Trailers from My Videos Shares and Database view, window ID: 6 and ID: 25 respectively.
    • Updated translations from Transifex.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,698
    7,083
    Sydney
    Australia Australia
    Country flag
    • Thread starter
    • Moderator
    • #40
    New release available, see first post for download link:

    v1.0.5 [2013-12-07]
    • Added support for trailers in the ShowTimes plugin, skinners can add a trailer button to either the details view, main movie list or both. Skinners can conditionally hide the existing trailers button and show the new one.
    • Added support to have more than one trailer button in a plugin window e.g. MovingPictures and Showtimes have different views but only one window, skinners can use either button id '11899' or '11900' to invoke trailers. This is required for skins that locate buttons differently based on the view and need proper navigation.
    • For new installs, the plugin will read in the trailer directory from ShowTimes and insert it into the list of dedicated trailer directories. This can be useful for people that auto download trailers from ShowTimes. If you're an existing user and think this will be useful then you can manually add your showtimes trailer directory in the Trailers configuration.
    • Added GUI Settings via MPEI Extensions plugin. Not all settings are exposed in GUI so users may still need to visit the configuration e.g. add a new dedicated directory or change search patterns.
    • Updated translations from Transifex.
    Note: if you want to add a button in your skin that directly links to the GUI Settings, see the Skin Designers Guide for an example.
     

    Attachments

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    doskabouter [Help Me!] Playback of iTunes Movie Trailers Developer Discussions 0
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    Similar threads

























    Top Bottom