Store language(s) from MediaInfo (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    I made some minor updates in r2109 so please do an SVN update before making any more fixes/changes to this patch ;)

    I will review the update in GetSeriesEpisodeCounts() method later this week.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Hey barneh,

    just so im clear on the functionality that you intended for the cCountSpecialEpisodesAsWatched option. Does that mean if you have a special episode in your database it will count as watched regardless of its watched status?

    If so I did not intend to make the cCountSpecialEpisodesAsWatched as default enabled in my last commit ;). I will change it back to false.
     
    Last edited:

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    There is still more to be done if you want to always count special episodes as watched.

    The DBEpisode.GetSeriesEpisodeCounts() does not get called during an import. I suggest you put a break point here in OnlineParse.cs:
    Code:
      void asyncEpisodeCounts(object sender, DoWorkEventArgs e)
      {
      Thread.CurrentThread.Priority = ThreadPriority.Lowest;
      List<DBSeries> allSeries = (List<DBSeries>)e.Argument;
      BackgroundWorker worker = sender as BackgroundWorker;
      int nIndex = 1;
      var episodesForCount = DBSeries.GetEpisodesForCount();
      foreach (DBSeries series in allSeries)
      {
      worker.ReportProgress(0, new object[] { series, nIndex++ });
      DBSeries.UpdateEpisodeCounts(series, episodesForCount);
      }
      e.Result = allSeries.Count;
      }

    fyi, a couple years ago I think I made some changes to episode counting as it was too slow.
     
    Last edited:

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    Does that mean if you have a special episode in your database it will count as watched regardless of its watched status?

    If so I did not intend to make the cCountSpecialEpisodesAsWatched as default enabled in my last commit ;). I will change it back to false.

    Yes... Regardless if the special episode exist or not, it should count it as watch. So default should be false :)
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Also test deletion of episodes,season,series from GUI Action menu. Toggling Show All Episodes from Options menu etc. These affect the counts when executed.

    Another thing I noticed about the patch is that when you toggle option in GUI, it updates the series counts on the main thread. It should do this on a background thread.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    fyi, a couple years ago I think I made some changes to episode counting as it was too slow.
    I put the check in DBSeries.GetEpisodesForCount(), so it shouldn't go slower with this feature...

    Another thing I noticed about the patch is that when you toggle option in GUI, it updates the series counts on the main thread. It should do this on a background thread.
    Fixed!

    I have done some tests, but I feel I need to do more... Hopefully I get some time to do them later this week, so I can commit a new patch after that :)
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    ltfearme said: ↑
    fyi, a couple years ago I think I made some changes to episode counting as it was too slow.
    I put the check in DBSeries.GetEpisodesForCount(), so it shouldn't go slower with this feature...

    After testing i found out that it was better to do the change in DBSeries.UpdateEpisodeCounts() then DBSeries.GetEpisodesForCount() :)
     

    Users who are viewing this thread

    Similar threads

    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who wrote that code know what the log entries mean, but those developers have long since retired from the MP team.) I regret to say that I think that you will have to use the "brute force" method to track down...
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who...
    Sometimes when displaying the OSD whilst playing a recorded TV show the video freezes and the sound continues for about 30 seconds...
    Replies
    1
    Views
    653
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    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
    40
    Views
    4K
    Installing other software, especially MP1, which is partly sharing Tv service with MP2, can make everything worse. Please upload your debug log files, if you want to solve the issue.
    Installing other software, especially MP1, which is partly sharing Tv service with MP2, can make everything worse. Please upload...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    6
    Views
    1K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    1K
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    Whenever I go into the back end for Moving Pictures, it almost immediately hangs on the Movie Importer tab. If I want to go into...
    Replies
    4
    Views
    502
    Top Bottom