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
    165
    159
    Home Country
    Italy Italy
    @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,755
    7,200
    Sydney
    Home Country
    Australia Australia
    • 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
    514
    Stuttgart
    Home Country
    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,755
    7,200
    Sydney
    Home Country
    Australia Australia
    • 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,755
    7,200
    Sydney
    Home Country
    Australia Australia
    • 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
    165
    159
    Home Country
    Italy Italy
    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,755
    7,200
    Sydney
    Home Country
    Australia Australia
    • 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,755
    7,200
    Sydney
    Home Country
    Australia Australia
    • 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

    • GUIButtons.jpg
      GUIButtons.jpg
      621.3 KB
    • GUIMPEISettings.jpg
      GUIMPEISettings.jpg
      283 KB

    Users who are viewing this thread

    Top Bottom