My Films 6.1 released ! (30.06.2014) - V6.1.0.3107 (MP 1.6, 1.7 & 1.8) (1 Viewer)

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Hi @ltfearme - I tried adapting to the new DLL, as you said, there is no more "Users" available, so can't use the multi user environment anymore.
    I replaced the the multiuser handling with just checking, if the active MyFilms user is the one at Settings.Username.
    How can I make sure, that scrobbling etc. is only done, if the Current MyFilms-user is the same as the Trakt-user? Should I set the connectionstate to offline?
    I think I need a little help from you :)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,743
    7,172
    Sydney
    Home Country
    Australia Australia
    I replaced the the multiuser handling with just checking, if the active MyFilms user is the one at Settings.Username.
    I think that will suffice.

    How can I make sure, that scrobbling etc. is only done, if the Current MyFilms-user is the same as the Trakt-user? Should I set the connectionstate to offline?
    I wouldn't use the connection state, I really should mark that as internal :) Is your myfilms username public? I could just check for that when scrobbling.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,743
    7,172
    Sydney
    Home Country
    Australia Australia
    @Guzzi

    not sure if I already told you about this, but when I do a collection sync I can submit information about the video (mediainfo). Right now for MyFilms I set these properties to null:
    Code:
    syncCollectedMovies = (from movie in collectedMovies
                           where !traktCollectedMovies.ToList().Exists(c => MovieMatch(movie, c.Movie))
                           select new TraktSyncMovieCollected
                           {
                               Ids = new TraktMovieId { Imdb = movie.IMDBNumber.ToNullIfEmpty(), Tmdb = movie.TMDBNumber.ToNullableInt32() },
                               Title = movie.Title,
                               Year = movie.Year,
                               CollectedAt = movie.DateAdded.ToISO8601(),
                               MediaType = null,
                               Resolution = null,
                               AudioCodec = null,
                               AudioChannels = null,
                               Is3D = false
                           }).ToList();

    Is this information available yet on a MFMovie object? If not, is there another way to retrieve this info so I can set it accordingly? Trakt accepts the following:
    Trakt.tv API · Apiary (see MEDIA OBJECT POST DATA)
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    I think that will suffice.


    I wouldn't use the connection state, I really should mark that as internal :)
    No, please leave it public, as I use it to show the connection state - but I understand, I should not modify it during runtime. I think you recommended doing so in the past to change the userprofiles !? ...
    Is your myfilms username public? I could just check for that when scrobbling.
    You could try
    Code:
    MyFilmsPlugin.MyFilmsGUI.MyFilms.conf.StrUserProfileName
    Check for null, as it is instantiated, loaded and modified during runtime.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    @Guzzi

    not sure if I already told you about this, but when I do a collection sync I can submit information about the video (mediainfo). Right now for MyFilms I set these properties to null:
    Code:
    syncCollectedMovies = (from movie in collectedMovies
                           where !traktCollectedMovies.ToList().Exists(c => MovieMatch(movie, c.Movie))
                           select new TraktSyncMovieCollected
                           {
                               Ids = new TraktMovieId { Imdb = movie.IMDBNumber.ToNullIfEmpty(), Tmdb = movie.TMDBNumber.ToNullableInt32() },
                               Title = movie.Title,
                               Year = movie.Year,
                               CollectedAt = movie.DateAdded.ToISO8601(),
                               MediaType = null,
                               Resolution = null,
                               AudioCodec = null,
                               AudioChannels = null,
                               Is3D = false
                           }).ToList();

    Is this information available yet on a MFMovie object? If not, is there another way to retrieve this info so I can set it accordingly? Trakt accepts the following:
    Trakt.tv API · Apiary (see MEDIA OBJECT POST DATA)
    I just checked the code and no, it is not yet available within the MFMovie object. Will add it, as it is as simple as exposing the internal data.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    I just checked the code and no, it is not yet available within the MFMovie object. Will add it, as it is as simple as exposing the internal data.
    I have added the properties, it is available right within the MFMovie object. However, the content might not be exactly what is defined, so either it needs to be preeprocessed or checked and ignored, when not matching the requirements. It is also depending on the environment, sort of movie catalog and user preferences, what is inside the fields...
     

    Attachments

    • MyFilms-V6.1.3.1469.mpe1
      32.5 MB
    Last edited:

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,743
    7,172
    Sydney
    Home Country
    Australia Australia
    No, please leave it public, as I use it to show the connection state - but I understand, I should not modify it during runtime. I think you recommended doing so in the past to change the userprofiles !? ...

    I only marked the setter as internal so you still should have access to get the connection state.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,743
    7,172
    Sydney
    Home Country
    Australia Australia
    I have added the properties, it is available right within the MFMovie object. However, the content might not be exactly what is defined, so either it needs to be preeprocessed or checked and ignored, when not matching the requirements. It is also depending on the environment, sort of movie catalog and user preferences, what is inside the fields...

    Cool, I will process them and convert them to trakt compatible fields.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,743
    7,172
    Sydney
    Home Country
    Australia Australia
    @Guzzi , im trying to setup a test environment but having issues during import. Can you or someone else tell me whats wrong? I see this null reference exception in the log:
    Code:
    7/10/2017 9:25:55 AM - ErrorEvent : object reference not set to an instance of an object.

    I basically just did a fresh install and did an import using the default settings after the installation completes. I tried restarting the config and repeating, the same thing occurred.
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    Thank you for taking the time to reply. My point is that after the new install ALL movies show up as watched. Even the 20-25 movies I haven't watched yet. This happens regardless of the watched/unwatched status set on the movie catalog (xml). So I guess it has nothing to do with the catalog itself but with the MyFilms plugin.
    Thank you for taking the time to reply. My point is that after the new install ALL movies show up as watched. Even the 20-25 movies...
    I installed MP 1.8 and MyFilms on a new machine but I forgot to save the watched status first. I use AMC as movies catalog for...
    Replies
    2
    Views
    1K
    • Sticky
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many things were not intuitive, too frumpy and the gui had hardcoded dependencies to plug-ins, some buttons didn’t work even without a note due to that. Same for player controls, why do I see always play and pause...
    Great work and release!! Contrats to all involved developers :):D I installed MP1 initially, but didn’t get along with it. Many...
    We are proud to present MediaPortal 2.4 MediaPortal 2.4 is a full-blown media center software that addresses most common user...
    Replies
    4
    Views
    585
    • Sticky
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch Mediaportal log to Debug level [MP1-5082] - Error when MP restart [MP1-5086] - XMLTV Import error - An item with the same key has already been added. Since Pre-Release : [MP1-5089] - MpurlSourceSplitter...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    Replies
    0
    Views
    841
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5081] - WatchDog...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    729
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    We have just released MediaPortal 1.28 Summer Breeze Highlights of this release Bugfixes: [MP1-5053] - TV framerate is not...
    Replies
    12
    Views
    2K
    Top Bottom