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

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    11,750
    6,599
    Kyiv
    Ukraine Ukraine
    Country flag
    Maybe you can convince the .ru site to develop an API
    They have an API, or rather was. For mobile applications. Request API for normal applications was sent six months ago. But they can not decide, just like that. I think they want money, but can not be determined with a price.

    But without APIs ltfearme is not keen on adding.
    But if there is a mechanism similar to the grabbers in My Videos, then everyone will be able to add a site that wants to. And this will not detract @ltfearme from the work. :)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    11,750
    6,599
    Kyiv
    Ukraine Ukraine
    Country flag
    @ltfearme
    I try add Trailers button in DialogVideoInfo.xml like:
    XML:
    <control>
            <description>Trailers</description>
            <type>button</type>
            <id>11899</id>
            <label>#Trailers.Translation.Trailers.Label...</label>
            <onup>97270</onup>
            <ondown>2</ondown>
            <onleft>456852</onleft>
            <textcolor>FF000000</textcolor>
            <textcolorNoFocus>ffffffff</textcolorNoFocus>
            <visible>plugin.isenabled(Trailers)</visible>
            <animation effect="fade" time="250" condition="!control.hasfocus(456852)">conditional</animation>
          </control>
    But when I press this button, the activity becomes the first button in the list, and nothing happens. Am I doing something wrong?
     
    Last edited:

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    @ajs,

    I don't know from your log file, was there any error.log generated?

    I suspect it tried to get information from the MyVideos properties but failed:

    Code:
      public static bool GetCurrentMediaItem(out MediaItem currentMediaItem)
      {
      FileLog.Info("Getting selected movie information from MyVideos.");
    
      currentMediaItem = new MediaItem();
      currentMediaItem.Title = GUIPropertyManager.GetProperty("#title").Trim();
    
      int year;
      var strYear = GUIPropertyManager.GetProperty("#year").Trim();
      if (int.TryParse(strYear, out year))
      currentMediaItem.Year = year;
    
      // Get IMDb ID
      string imdbid = GUIPropertyManager.GetProperty("#imdbnumber").Trim();
      if (!string.IsNullOrEmpty(imdbid) && imdbid.Length == 9)
      currentMediaItem.IMDb = imdbid;
    
      currentMediaItem.Plot = GUIPropertyManager.GetProperty("#plot").Trim();
      currentMediaItem.Poster = GUIPropertyManager.GetProperty("#thumb").Trim();
    
      // Get Local File Info
      currentMediaItem.FullPath = GUIPropertyManager.GetProperty("#file").Trim();
    
      // At the very least we should have a file
      if (string.IsNullOrEmpty(currentMediaItem.FullPath))
      {
      // try get the selected item on the facade
      if (SelectedItem != null && !SelectedItem.IsFolder)
      {
      currentMediaItem.FullPath = SelectedItem.Path;
      }
      else
      {
      currentMediaItem = null;
      }
      }
    
      return true;
      }
    I would need to add more logging to figure out why it failed for you as you only see:
    Code:
    Getting selected movie information from MyVideos.
    There is possibly an unhandled exception in there so check your error log.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    It doesn't look like there is any unhandled exception so will need to provide more logging for you to test with.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,697
    7,081
    Sydney
    Australia Australia
    Country flag
    @ajs,

    the reason why its not working for you is because GUIPropertyManager.GetProperty("#file") is empty for you.

    I assume My Videos will always populate that with the file of the video in question, does that video have a file or is it an orphan entry in your database?

    If you do have a file then its a MediaPortal bug as that property should be populated where there is a file reference.

    Anyway, I will support no file reference as I just tested the My Videos configuration and you can remove a file reference from the database so I should support that as well. Release in v1.2.2.
     
    Last edited:

    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 3
    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 2
    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