Trakt for MP2 (2 Viewers)

Alberto83

Portal Pro
August 7, 2012
336
108
Home Country
Italy Italy
Ok perfect. I left a lot of imports aside to test the new automatic collection sync, i'll move them tonight and see if they automatically sync to trakt collections.
What's the default delay? I mean, once I import a new movie or episode and it's discovered by MePo2, when is trakt suppose to trigger an automatic collection sync?
Just to know how much I have to wait.

Yesterday I briefly tested scrobble and it seemed to work very well, but tonight i'll test more, since it's finally Friday.
 

aspik

Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    TE should have only deviations in the setup layout.
    That's what I meant. Besides notifications (which are common for all skins) this is currently the only screen in trakt ;)
    What's the default delay?
    Right after the manually triggered import finishes, a sync should start. If you have enabled notifications for the auto-sync you should have see a pop up once it finished. I'll change it to a periodic sync, like in the MP1 version. But not this weekend, I'm just about to leave. Will be back on Monday.
     

    Alberto83

    Portal Pro
    August 7, 2012
    336
    108
    Home Country
    Italy Italy
    I'll change it to a periodic sync, like in the MP1 version. But not this weekend, I'm just about to leave. Will be back on Monday.

    Ok thanks. I don't know if it's possible, it's just speculation, but if MePo2 implements an event subscription for a new media (movie or tvserie) found you could subscribe to that channel to sync that movie only. That would be probably much better than a periodic sync.
    Is there anything like that available?

    EDIT: Nevermind I just realized it's hard myself. that would be a server side thing, and trakt plugin works client side.
     

    Alberto83

    Portal Pro
    August 7, 2012
    336
    108
    Home Country
    Italy Italy
    Ok, I updated trakt to the latest version and used my main account. I authorized and pressed sync with trakt to sync library and... OUCH! It synced all my viewed episodes and movies under my history (instead of just syncing the collection), like I watched everything again today... :D

    Only watched movies and tv series have been synced. Are you sure that with syncing library you aren't actually using the api to mark them as watched now? :D

    You have the log attached.
     

    Attachments

    • screen.png
      screen.png
      711.3 KB
    • Client.zip
      53.2 KB
    Last edited:

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,301
    1,886
    Home Country
    United Kingdom United Kingdom
    Is there anything like that available?
    Yes, it is possible. One way would be the same way the importer progress is shown in the client.
    The client might not be running when the server is importing and the current implementation of server states doesn't guarantee delivery of every message so I don't think this would be reliable. We could add a server side trakt plugin to handle it but it would probably be tricky to handle different trakt users at the server,
     

    Alberto83

    Portal Pro
    August 7, 2012
    336
    108
    Home Country
    Italy Italy
    We could add a server side trakt plugin to handle it but it would probably be tricky to handle different trakt users at the server

    This is something I was thinking at the beginning when I tried to develop a trakt extension for live tv for MePo2. I personally think trakt would work great server side, expecially since every trakt user should (not must) login just once in the systems, and not concurrently. Such a control would be possible only server side, I guess.
    In an hypothetical future version of MePo, maybe the user management could evolve more to user identities and not just for privilege management. I'm think of a scenario where i'm watching something (tv, movie, whatever) on my kitchen; I press a button to "log off and pause" my state: my program pause, trakt advancement pause, or the eventual timeshift is preserved. Then I log on into the living room client, and my activity resumes automatically, the stream or the mkv, and trakt state restores.

    I know this capability is gonna require code and the tve 3.5 engine, but do you think it could be a future feature? Does it makes sense at least?
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    The client might not be running when the server is importing
    I was just talking about a scenario in which a periodic sync could be avoided. I didn’t mean it was the only way to sync. A sync when a client is started could be used to determine what was added during its downtime.
     

    Alberto83

    Portal Pro
    August 7, 2012
    336
    108
    Home Country
    Italy Italy
    @aspik I'm patiently removing all the bad syncs, it will take some time, but I can test the plugin again in the meanwhile. :D
    Do you need me to produce more logs?
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    @Alberto83
    thanks for the test and sorry for the sync issues! I just took a quick look at the logs. There are some "unauthorized" errors and a 504 error (Gateway time-out).

    I'll come back to you when I find more time to go over the logs in more detail. In the mean time, if you will you can try to test a smaller subset of movies/series with your test trakt account ;) to see if the sync issues were only temporary (504 means trakt.tv was not reachable) or there is a bug in the current sync implementation.

    @henso, @Brownard
    Thanks for the input! I'll think about it, and eventually ask for more details later.
     

    Users who are viewing this thread

    Top Bottom