Store language(s) from MediaInfo (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,760
    7,224
    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,760
    7,224
    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,760
    7,224
    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,760
    7,224
    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

    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    30
    Views
    8K
    Sadly, it seems that development of MP2 has come to a stop. Perhaps it will restart in the future. Meanwhile... MP1 has a "Tuning Details" panel that displays signal strength, signal quality, and picture resolution. It is updated in real time when viewing a channel: However, perhaps you are already aware of this, but prefer MP2...
    Sadly, it seems that development of MP2 has come to a stop. Perhaps it will restart in the future. Meanwhile... MP1 has a "Tuning...
    For those of us watching broadcast (over-the-air) television, it would be very handy to have a signal strength meter readily...
    Replies
    1
    Views
    4K
    I'm running 2.5 with the WMC skin. I have .mp4 files, along with the related .srt files in the same folder. I can watch the movies just fine. In past versions of MP, like 2.4x, I could press the More Info button on my remote twice, and on the second press, an option for showing/choosing the subtitles was listed. I'd select the...
    I'm running 2.5 with the WMC skin. I have .mp4 files, along with the related .srt files in the same folder. I can watch the...
    I'm running 2.5 with the WMC skin. I have .mp4 files, along with the related .srt files in the same folder. I can watch the...
    Replies
    0
    Views
    3K
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The Latest Media Handler plugin seems to be working as expected. I've had no lock-ups.
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The...
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    13
    Views
    4K
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is missing in my Titan skin. This only applies to my .TS files, my .MKV files are OK. I believe the difference is likely to be because .MKV files embed the runtime in the file unlike .TS files. I have done...
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
    Replies
    0
    Views
    843
    Top Bottom