Trakt for MP2 (6 Viewers)

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    @aspik
    Thanks, you almost did everything, so it took just a few minutes to adjust the styles. When I stop playing a file I always get "ServerError". Have you ever had success? I wonder, if it's a general problem, because scrobble works when starting to play a MI.

    trakt_indicator_BV.jpg trakt_indicator_WMC.jpg

    Commit
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Thanks, you almost did everything, so it took just a few minutes to adjust the styles
    I didn't do anything, just copied the rec design, so it was either you or Brownard ;)
    When I stop playing a file I always get "ServerError". Have you ever had success? I wonder, if it's a general problem, because scrobble works when starting to play a MI.
    For me both are working, starting and stopping the video results in a successful post to trakt.
    "ServerError" sounds like an issue form the TraktApiSharp, could you please post (or send me) logs from client?

    Thank you for the adjustments! Do you plan to make use of the IsSuccess property to show (maybe an icon?) if the action was a success or not?
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    For me both are working, starting and stopping the video results in a successful post to trakt.
    "ServerError" sounds like an issue form the TraktApiSharp, could you please post (or send me) logs from client?
    I'll attached them tonight

    Thank you for the adjustments! Do you plan to make use of the IsSuccess property to show (maybe an icon?) if the action was a success or not?
    I can add an Icon. I was not considering it, because there is an error message anyway, if it is not successful.
    Could be something like this and in case not successful with a "x" instead:
    upload_2018-6-25_12-17-55.png
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    @aspik
    IsSuccess is implemented now with icons as follows
    upload_2018-6-25_19-15-36.png upload_2018-6-25_19-17-42.png

    Log files from my client attached because of the server error when stopping playback.
     

    Attachments

    • ClientError.log
      34 KB

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Thanks again!

    Log files from my client attached because of the server error when stopping playback.
    It's a http 500 (internal server error). To get more details whats happening in your case I added more logging for the TraktApiSharp lib.
    After that I took a random mkv video, renamed it according to your file, created .nfo and did a test. Everything went good, no error.

    Attached a version with the extended logging. Could you please test again? Does it happen with every video? Changes are also pushed, if you prefer to compile it yourself.
     

    Attachments

    • Trakt_For_MP2.2_v3.7z
      364.4 KB

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    Thanks again!


    It's a http 500 (internal server error). To get more details whats happening in your case I added more logging for the TraktApiSharp lib.
    After that I took a random mkv video, renamed it according to your file, created .nfo and did a test. Everything went good, no error.

    Attached a version with the extended logging. Could you please test again? Does it happen with every video? Changes are also pushed, if you prefer to compile it yourself.
    Attached the new logs after testing with the updated version of Trakt plugin. Same error message appears when stopping movies (expected I guess, as you only added more logging). the logs contain more infos now, but I'm doubtful they will help you so much. Let's see :)
     

    Attachments

    • ClientError.log
      24 KB

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    the logs contain more infos now, but I'm doubtful they will help you so much
    don't say so, we can now see what we're sending to trakt in case of an error :) I checked it with postman and the data itself is valid (status 201), so this is not the reason for the 500 error. But, I checked it with my account, so it could be that something went wrong during the authorization process.

    Are you sure that scrobble start is a success? I can't see it in the logs, because you trimmed it ;)

    You should have in you're MP2-Client ProgramData directory a Trakt directory. In this directory you should have at least one directory (your profile id). And this directory should contain at least three files:
    - authorization.json,
    - last.sync.activities.json,
    - user.settings.json
    can you confirm? If so, could you please send me via PM the authorization.json file?
     

    Attachments

    • postman_stop_scrobble.PNG
      postman_stop_scrobble.PNG
      43.7 KB

    Alberto83

    Portal Pro
    August 7, 2012
    336
    108
    Home Country
    Italy Italy
    Hello everyone, I'm trying to catch up with these post now. Unfortunately I had to leave my home (and my country) all of a sudden and I haven't a lot of time to post. I'll be back home next week and i'll be much more active, I swear.

    I totally LOVE all you've done with the notification system, that's absolutely something I was thinking of asking as a next version of the plugin and I'm glad you already did it.
    I'll use trakt with my native account next week as soon as I come back to try library sync and notifications. I have a lot of shows to catch up so that will help me testing.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    don't say so, we can now see what we're sending to trakt in case of an error :) I checked it with postman and the data itself is valid (status 201), so this is not the reason for the 500 error. But, I checked it with my account, so it could be that something went wrong during the authorization process.

    Are you sure that scrobble start is a success? I can't see it in the logs, because you trimmed it ;)

    You should have in you're MP2-Client ProgramData directory a Trakt directory. In this directory you should have at least one directory (your profile id). And this directory should contain at least three files:
    - authorization.json,
    - last.sync.activities.json,
    - user.settings.json
    can you confirm? If so, could you please send me via PM the authorization.json file?
    Yes, I’m sure scrobble starts successfully, at least IsSuccessful is always true. You got a pm with details.
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    @ge2301
    many thanks for the file! I can confirm your problem. It looks like you found a bug in the trakt API :D

    Sending stop scrobble with your access token gives an 500 error. And this is independently from the trakt plugin or the TraktApiSharp lib. Attached a screenshot from postman. With your access token I've got the same error.

    What do we now? Will you report the problem at trakt.tv? Or should I do it? As you see in the error message, they need all the data (including your access token which you have send me).
     

    Attachments

    • postman_stop_error.PNG
      postman_stop_error.PNG
      31.8 KB

    Users who are viewing this thread

    Top Bottom