Trakt for MP2 (1 Viewer)

aspik

Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Then I'll have to defer to @henso ;)
    OK :) But, you know for sure where in the DB I can find the ImdbId? I suppose my imported movies do not have any ImdbId in the DB, I can't find it... I see i.e budget, popularity, etc.. but no ImdbId
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,301
    1,886
    Home Country
    United Kingdom United Kingdom
    See my edit in previous post for a possible solution ;) AFAIK it should be in the ExternalIdentifierAspect
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    EDIT: @aspik just had a thought that maybe the ExternalIdentifierAspect just isn't being requested with the MediaItem, which I don't think it is for media views (i.e. not included in the MediaItemQuery's necessary/optionalRequestedMIATypeIds). Maybe you'll need to reload the media item from the server with it included.
    Bingo! Now I have it :) Thank you!

    fyi, if you have access to TMDb IDs, that is the best external source ID to use followed by IMDb ID for Movies.
    Yes, of course we have TMDb Id. Thanks for the hint, I will start with the TMDb id then :)
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    I finally had time to add the two-way syncing. Changes are for now in a separate branch instead of the pre2. After the MIA-rework scrobbling needs to be fixed.

    I need again some help from.... @Brownard ( :D)
    For scrobbling I need the ExternalIdentifierAspect of the current played media item. Unfortunately the played media item does not have it. How can I load this aspect for the played video? Is there any way (method) to load all available aspects from the server for one media item?

    Thanks again:)
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    I need again some help
    I'm not so familiar with your plugin so I hope I'm right in assuming it's a client plugin.
    From the client you I think you can use something like the following:
    C#:
    IServerConnectionManager scm = ServiceRegistration.Get<IServerConnectionManager>();
    IContentDirectory cd = scm.ContentDirectory;
    IFilter filter = new MediaItemIdFilter(MEDIA_ITEM_ID);
    if (cd != null)
        cd.Search(new MediaItemQuery(NECESSARY_MIAS, OPTIONAL_MIAS, filter), false, null, true);
    In NECESSARY_MIAS you then need to put ExternalIdentifierAspect.ASPECT_ID.
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Fixed scrobbling for series and movies plus two way syncing pushed to pre2 branch.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    @aspic, how is the two way synching supposed to work?

    I upgraded to the latest build 185 (see our release thread). My set of series and movies, whose watch status is tracked on my existing account, is still showing as unwatched in MP 2.1 despite the majority of them having been watched before and marked as such in Trakt.

    Is there a trigger process for the downward synching, i.e. from Trakt -> MP 2.1?
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Is there a trigger process for the downward synching, i.e. from Trakt -> MP 2.1?
    Did you press the sync button in the setup dialog? If yes and your videos are not marked as watched in MP2, then something is not working as it should. Could you please post (or send me via PM) the client log?
     

    Users who are viewing this thread

    Top Bottom