Episode sort (1 Viewer)

bobrap

MP Donator
  • Premium Supporter
  • May 22, 2006
    210
    3
    TN
    Home Country
    United States of America United States of America
    Is the sort by sort name instead of pretty name working correctly? I have that set and it seems to sort correctly in configuration, but not when running the plugin. Any ideas what I might be doing wrong?
     

    daquint

    Portal Pro
    November 8, 2006
    52
    2
    I have noticed the same thing.

    I just rename all the pretty names to the sort order i want, to avoid 18 shows sorted by "the.."

    I think its a bug.
     

    mortstar

    MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    Great plugin - the above mentioned issue is 1 minor bugbear.

    Could the plug-in use 'Sort Name' instead of 'Pretty Name' for alphabetising?

    Cheers!
     

    ScoopD

    Portal Member
    April 24, 2007
    37
    4
    Melbourne
    Home Country
    I had exactly the same requirement as all of the above, and this is how I fixed it.

    I manually changed this is the database using the SQLite Database Browser.exe which hides in <PATH TO MEDIAPORTAL>MediaPortal\Docs.

    Make sure you have exited MP and then launch the exe and open TVSeriesDatabase4.db3 from the database folder. Go to the Browse Data tab, then choose the Views table. These are all the available views. If you don't want to lose the default ones then create a new one (New Record) Call it what you want - the important stuff is - ID field is unique, so one more than the previous one; enabled field should be 1; viewConfig is the important one. This is what I use for the ALL view.

    Code:
    series<;><;><Series.SortName>;asc<;><nextStep>season<;><;><Season.seasonIndex>;asc<;><nextStep>episode<;><;><Episode.EpisodeIndex>;asc<;>

    The only variance to the standard is that <Series.Pretty_Name> is replaced by <Series.SortName>. I did the same change in my Genre view. Don't forget to save the database when you exit, then go back into MP and see your changes in action.
    ;) :D
     

    mortstar

    MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    I had exactly the same requirement as all of the above, and this is how I fixed it.

    I manually changed this is the database using the SQLite Database Browser.exe which hides in <PATH TO MEDIAPORTAL>MediaPortal\Docs.

    Make sure you have exited MP and then launch the exe and open TVSeriesDatabase4.db3 from the database folder. Go to the Browse Data tab, then choose the Views table. These are all the available views. If you don't want to lose the default ones then create a new one (New Record) Call it what you want - the important stuff is - ID field is unique, so one more than the previous one; enabled field should be 1; viewConfig is the important one. This is what I use for the ALL view.

    Code:
    series<;><;><Series.SortName>;asc<;><nextStep>season<;><;><Season.seasonIndex>;asc<;><nextStep>episode<;><;><Episode.EpisodeIndex>;asc<;>

    The only variance to the standard is that <Series.Pretty_Name> is replaced by <Series.SortName>. I did the same change in my Genre view. Don't forget to save the database when you exit, then go back into MP and see your changes in action.
    ;) :D

    Worked perfectly, cheers!
     

    mortstar

    MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    Since upgrading to version 2.0 (and also the svn before that), this expression now completely messes up the episode sort.

    I'd like to get the series prefixed with "the" back into 'Sort Name' order - anybody have any ideas for the new version?
     

    ScoopD

    Portal Member
    April 24, 2007
    37
    4
    Melbourne
    Home Country
    Well there you go. I finally updated to plugin 2.0 on my main machine and, as reported, the order of series (using sortname instead of pretty_name) is all stuffed.

    Had a look in the database and in my backed up pre-upgrade database for comparison. What I found was that the sortname field is almost completely blank - almost every series does not have an entry in sortname. Compare this to my pre-update database where every single series has an entry in sortname.

    So one of the following has happened depending on how that field is populated.
    1. the change at thetvdb has wiped out a field of info (nothing we can do about that)
    2. the updated plugin is not grabbing that info and populating the field (this should be able to be fixed fairly easily)
    3. that field was always populated by some operation of the plugin which has been removed (again, this should be able to be fixed).

    I'll put this in the main "use the new plug-in" thread as well & see if any of the coding guys understand what we are talking about.
     

    mortstar

    MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    I had meant to update this post....


    This is what I found too - the Sort Name field is not being populated, so the random order was caused by sorting by this field and most values being null.

    to rectify the problem I just populated the Sort Name field and for the series prepended with "The...", I removed the prefix and now they all appear in the correct order :)

    EDIT: Also the option for sort by "Sort Name" must be checked in TV Series configuration - no need to mess with the views in database setup.
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 [solved] Ignore "The" for Sort Name? DE
    Added to 1.38 Final
    Added to 1.38 Final
    I don't want to remove the title prefix from a movie title (i.e. "The Matrix" -> "Matrix, The", but I don't want to manually remove...
    Replies
    20
    Views
    3K
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others) have been using the latest NewZap2xml_6 and it has worked flawlessly. A few days ago it all died. I wonder if anyone is working a solution to save the masses. I am hoping the good citizen of past is...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Replies
    0
    Views
    590
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
    I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
    Replies
    4
    Views
    1K
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV Server development looks dead so I'm afraid you're going to have to figure that out by yourself if it's even possible.
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV...
    Hi everyone, I've set up Mediaportal TV Server on a Windows 11 box, tuner deteced okay, scanned channels, can preview, all seems...
    Replies
    8
    Views
    1K
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    1K
    Top Bottom