Trailers Plugin v1.2.2 (Play/Stream/DL for MovingPictures, My Films, My Videos..) [2015-04-11] | Page 16

Discussion in 'MediaPortal 1 Plugins' started by ltfearme, November 4, 2013.

  1. kiwijunglist
    • Team MediaPortal

    kiwijunglist Super Moderator

    Joined:
    June 10, 2008
    Messages:
    6,742
    Likes Received:
    1,417
    Occupation:
    Doctor
    Location:
    New Zealand
    Ratings:
    +1,846 / 9
    Home Country:
    New Zealand New Zealand
    Show System Specs
    • Agree Agree x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,677
    Likes Received:
    2,674
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,631 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    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 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. :)
     
    • Like Like x 1
  4. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,677
    Likes Received:
    2,674
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,631 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    @ltfearme
    I try add Trailers button in DialogVideoInfo.xml like:
    Code (XML):
    1. <control>
    2.         <description>Trailers</description>
    3.         <type>button</type>
    4.         <id>11899</id>
    5.         <label>#Trailers.Translation.Trailers.Label...</label>
    6.         <onup>97270</onup>
    7.         <ondown>2</ondown>
    8.         <onleft>456852</onleft>
    9.         <textcolor>FF000000</textcolor>
    10.         <textcolorNoFocus>ffffffff</textcolorNoFocus>
    11.         <visible>plugin.isenabled(Trailers)</visible>
    12.         <animation effect="fade" time="250" condition="!control.hasfocus(456852)">conditional</animation>
    13.       </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: January 14, 2016
  5. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    @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 (Text):
    1.  
    2.  
    3.   public static bool GetCurrentMediaItem(out MediaItem currentMediaItem)
    4.   {
    5.   FileLog.Info("Getting selected movie information from MyVideos.");
    6.  
    7.   currentMediaItem = new MediaItem();
    8.   currentMediaItem.Title = GUIPropertyManager.GetProperty("#title").Trim();
    9.  
    10.   int year;
    11.   var strYear = GUIPropertyManager.GetProperty("#year").Trim();
    12.   if (int.TryParse(strYear, out year))
    13.   currentMediaItem.Year = year;
    14.  
    15.   // Get IMDb ID
    16.   string imdbid = GUIPropertyManager.GetProperty("#imdbnumber").Trim();
    17.   if (!string.IsNullOrEmpty(imdbid) && imdbid.Length == 9)
    18.   currentMediaItem.IMDb = imdbid;
    19.  
    20.   currentMediaItem.Plot = GUIPropertyManager.GetProperty("#plot").Trim();
    21.   currentMediaItem.Poster = GUIPropertyManager.GetProperty("#thumb").Trim();
    22.  
    23.   // Get Local File Info
    24.   currentMediaItem.FullPath = GUIPropertyManager.GetProperty("#file").Trim();
    25.  
    26.   // At the very least we should have a file
    27.   if (string.IsNullOrEmpty(currentMediaItem.FullPath))
    28.   {
    29.   // try get the selected item on the facade
    30.   if (SelectedItem != null && !SelectedItem.IsFolder)
    31.   {
    32.   currentMediaItem.FullPath = SelectedItem.Path;
    33.   }
    34.   else
    35.   {
    36.   currentMediaItem = null;
    37.   }
    38.   }
    39.  
    40.   return true;
    41.   }
    42.  
    I would need to add more logging to figure out why it failed for you as you only see:
    Code (Text):
    1.  
    2. Getting selected movie information from MyVideos.
    3.  
    There is possibly an unhandled exception in there so check your error log.
     
    • Thank You! Thank You! x 1
  6. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,677
    Likes Received:
    2,674
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,631 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Log in attach
     
  7. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    It doesn't look like there is any unhandled exception so will need to provide more logging for you to test with.
     
  8. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    @ajs, please provide log from this dll attached.
     

    Attached Files:

    • Release.zip
      File size:
      203.7 KB
      Uploaded:
      January 15, 2016
      Views:
      53
    • Like Like x 1
  9. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,677
    Likes Received:
    2,674
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,631 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Well, the evening will try.
     
  10. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,677
    Likes Received:
    2,674
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,631 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Log
     
  11. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    @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: January 16, 2016
    • Like Like x 2
Loading...

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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!