Trakt for MP2 (2 Viewers)

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,725
    3,521
    Stuttgart
    Home Country
    Germany Germany
    @ge2301
    Are you interested in designing those screens?
    Sure, as a designer I want to design :) :p Taking a look on the MP1 version confirmed that there are really many screens! You would like to take over designs as much as possible.
    What would be exactly my role? Supporting as designer or creating completely the xaml code? :whistle: I fear the second option it will be not easy for me since most elements need models or converters also in #C.
    So for all these things I'd need a Dev in parallel.
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,004
    1,427
    Home Country
    Germany Germany
    Password:
    The password is saved in the settings XML as plain text In the MP1 Trakt version there is an encrypt and decrypt method:
    https://github.com/trakt/Trakt-for-...ktPlugin/Extensions/SecurityExtensions.cs#L14
    @morpheus_xx
    Should I use it, or maybe is something similar already available in MP2?
    As far as I know there is nothing like that available in MP2, I modified the MPExtended Encryption file for MP2Ext to use also the MotherboardID. So if the pw gets stolen you can't decrypt it unless you have this id^^
    Maybe it helps ;)
     

    Attachments

    • Encryption.rar
      1.5 KB

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Password:
    The password is saved in the settings XML as plain text In the MP1 Trakt version there is an encrypt and decrypt method:
    https://github.com/trakt/Trakt-for-...ktPlugin/Extensions/SecurityExtensions.cs#L14
    @morpheus_xx
    Should I use it, or maybe is something similar already available in MP2?
    As far as I know there is nothing like that available in MP2, I modified the MPExtended Encryption file for MP2Ext to use also the MotherboardID. So if the pw gets stolen you can't decrypt it unless you have this id^^
    Maybe it helps ;)
    There is SerializableNetworkCredential - which is already used in the NetworkNeighborhoodResourceProvider to store the network credentials. The good thing is that - because it's implemented as IXmlSerializable - you can just use it in a settings class and it will automatically be written to the settings file encrypted. Have a look at the NetworkNeighborhoodResourceProviderSettings.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #85
    @aspik I'd like to pick up this thread again. How can we proceed with development? Could you implement the way of storing secure passwords to XML? Is there anything I can assists with?

    Do you think the currently implemented features are already at the version of the MP2 version before API change? If so, I'd like to create a first new public plugin version before we continue with more features.
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Thank you for picking up this! The currently status of the plugin doesn’t changed since my last post. The reason for this state is that before it can be released it should use its own API key and not that one from the MP1 version. Unfortunately I was not able to change it to the API key registered for MP2. I’ve asked ltfearme for help but as you can see, I don’t become an answer. I tried it on my own for two evenings and failed. After that I stopped with further development.

    If the API key would be changed to the MP2 one, then the plugin works already as I worked before the API changed. It can sync the library and scrobble the watched video.

    Besides the API key, I still need to get the Audio Channels number. I’ve described the problem in my previous post. If you could look into this, it would be great!
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #87
    I still need to get the Audio Channels number
    Ah, I remember. But I don't know if we can (or better should) support this. The number of audio channels is a property of an audio stream. A video (especially DVD/BD) can have multiple audio streams: DE AC3, DE MP2, EN AC3,... So what to report then? Max: 6, Min: 2, Sum: 14? ;)

    For trakt itself I think it's enough to report "2".
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    I guess its fine to take just only one, i.e the first one. The majority of videos would have anyway only one audio stream. It could be also a question for @ltfearme how it is done in the MP1 version.
    Reporting always 2 (stereo) is not the best solution, in my opinion :)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,004
    1,427
    Home Country
    Germany Germany
    If we put the transcodibg service into the main version in the future you get this kind of information; )
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,760
    7,224
    Sydney
    Home Country
    Australia Australia
    @aspik,

    Since MP2 is late to the party for a trakt v2 implementation it will *need* to support oAuth, so you can't simply use the same method MP1 does for user authentication. As mentioned earlier I have written another application in c# (https://forum.team-mediaportal.com/...-to-mp2-conception.124967/page-8#post-1152299) which supports oAuth, you can see how its done there.

    For the GUI in MP2 when making the first connection, you can show a QR image so users can scan with their smart phones and allow MP2 to interact with trakt.tv, if they don't have a phone/tablet you will need to have a label which indicates what webpage a user must go to (this is built up using the unique pin your app will get, see TraktRater for an example). Note: this process of manually allowing MP2 only needs to be done once, you can automatically request a refresh token in the background when it expires.

    Cheers,
    Damien
     
    Last edited:

    Users who are viewing this thread

    Top Bottom