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
    Okay, you will find that you wont have to test on a bigger collection as an import already does it on the fast execution path ;)

    Having said that, we still need to test the other execution path that you used for the Option toggle as it might be used in other places including externally from other plugins, Toggle Watched from context menu at the series, season levels etc.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    My code in GUI Option Toggle used the DBEpisode.GetSeriesEpisodeCounts(). I have used that one to test with, so I'm pretty sure that one works :unsure:

    Then there are two others in DBSeries called UpdateEpisodeCounts() who are kind of same, but with different parameters. One with one parameter and one with two parameters

    The Importer uses the one with two parameters.
    When making a hole Series watched the one with one parameter is used.
    When making a hole Season watched the DBSeason.UpdateEpisodeCounts() is used and that one again is using DBEpisode.GetSeriesEpisodeCounts().

    But then we have the external plugins... but I can't find any other places that have to do with counting, so I think I got everything covered?!?!
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    Hi...
    Here's a new patch.

    Including:
    • Fixing logical error in Count Special Episodes as Watch feature.
    • Remove option toggle for Count Special Episodes as Watch from the GUI (it's now only present in the Configuration GUI)
    • Added so that it fetches artwork in the Series language - If it exists.
    • Minor word correction in Configuration GUI
    @ltfearme I still got a difference in the GUIConfiguration.designer.cs towards Working Base. So can you please check this - I believe the working Base is wrong, but..
     

    Attachments

    • CountSpecialAsWatchedv3ANDFetchArtworkInSeriesLanguage.patch
      58.5 KB

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,760
    7,224
    Sydney
    Home Country
    Australia Australia
    Thanks @barneh. I committed your changes and made the additially changes:

    I fixed the DBOptionCheckbox 'Option' property on the 'CountSpecialEpisodesAsWatched' control and removed unneeded code for the intialisation and checkstate changes. DBOptionCheckBox already does this for you for free by specifying the DBOption in the 'Option' property.

    Also fixed a typo in the tooltip and adjusted the tab order.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    When I was looking around on what I have done, I found some idiotic declaration and so on :whistle:
    So I have clean up my code a little...

    Attach a new patch!
     

    Attachments

    • DifferentLanguage_v2.patch
      3.6 KB

    ltfearme

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

    the new release is out in the wild now so if you can monitor any reports that might be raised in the forum just in case it has anything to do with the language patches or any regression. That will be a big help.

    I found one regression in the details tab in configuration, I noticed its not using the pretty name for the database field property column. im not 100% sure if that was due to the changes you did to add the language dropdown in the grid. I can't remember last time it was working.

    I decided to release as its a just a little issue related to the config but if you got time to look that would be great.

    Thanks.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    I will monitor the forum, no problem

    @barneh,
    I found one regression in the details tab in configuration, I noticed its not using the pretty name for the database field property column.

    If I remember right, I have only added the language to the Series view and sound language to the episode view.
    So I haven't changed any more than that.
     

    barneh

    MP Donator
  • Premium Supporter
  • February 4, 2010
    245
    54
    Malmö
    Home Country
    Sweden Sweden
    I found one regression in the details tab in configuration, I noticed its not using the pretty name for the database field property column. im not 100% sure if that was due to the changes you did to add the language dropdown in the grid. I can't remember last time it was working.
    I'm not quite with you on this one.... can you give an example of what you mean?
     

    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