Store language(s) from MediaInfo (1 Viewer)

ltfearme

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

    that really sounds like an authorization issue. do you already have an OpenSubtitlesConfiguration.xml in the programfiles\tean mediaportal\subtitledownloaders folder? there you can fill in your credentials. I'm sure it is documented somewhere...
    that really sounds like an authorization issue. do you already have an OpenSubtitlesConfiguration.xml in the programfiles\tean...
    I'm having a strange issue with Subcentral & Subtitle Downloader. Everytime I try to download subtitles the list come out empty...
    Replies
    3
    Views
    683
    Looks like there's some kind of error regarding translations that I can't pinpoint about Subcentral. You'll find it in the log file I attached to my previous message. I don't understand it because I use MP in english, I search for subtitles in english and not in my native language, so I can't figure out what's translation got to do...
    Looks like there's some kind of error regarding translations that I can't pinpoint about Subcentral. You'll find it in the log file...
    I don't now what to say, I don't know where to begin. Mediaportal user since 2004. Always a satisfied user, I must add. Lately...
    Replies
    21
    Views
    3K
    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
    9K
    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
    Fixed, I think. Certainly the vintage MP2 installer that I was using no longer installs the LAV filters. I can only assume that these were never part of the install package itself, but rather downloaded during the install, and that link no longer exists. Shame that the installer doesn't indicate this. Last time when I installed the...
    Fixed, I think. Certainly the vintage MP2 installer that I was using no longer installs the LAV filters. I can only assume that...
    Hi all, I've recently retired my MP2 setup for my main HTPC and gone back to separates, but I wanted to retain the ability to play...
    Replies
    4
    Views
    971
    Top Bottom