Episode sort (1 Viewer)

ScoopD

Portal Member
April 24, 2007
37
4
Melbourne
Home Country
I had meant to update this post....
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

I am assuming you did this with a SQL query? Can you supply the string? Don't really know enough SQL myself and internet search may not be necessary if you have already done the work.
The thing I was worried about this was that the next time I do a scan/update I will lose that data and have to execute the SQL query again - as this can happen automatically when you go into tv series in MP this kind of defeats the purpose.

Update: OK I can "copy" the data into the SortName field using -
Code:
UPDATE online_Series SET SortName = online_Series.Pretty_Name
but I have no idea how to do a "begins with" type search


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.

Where is this option? I would have thought it would have been in the Import Settings tab, but I cannot see it in any option. I may have looked straight through it though.
 

mortstar

MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    I am assuming you did this with a SQL query? Can you supply the string? Don't really know enough SQL myself and internet search may not be necessary if you have already done the work.
    The thing I was worried about this was that the next time I do a scan/update I will lose that data and have to execute the SQL query again - as this can happen automatically when you go into tv series in MP this kind of defeats the purpose.

    Nope, in TV Series configuration, select the series - you can double click on the "Sort Name" field and fill it in yourself :)

    Not as clever as an SQL query - and a little more effort - but I can confirm that later updates don't overwrite your personal changes with the 'original' null values


    Where is this option? I would have thought it would have been in the Import Settings tab, but I cannot see it in any option. I may have looked straight through it though.

    Not near my HTPC at the moment, it is on the tab which configures the quality of the images, the logo templates etc... It's about half way down this screen and is difficult to spot. It's a simple tickbox affair though.
     

    bobrap

    MP Donator
  • Premium Supporter
  • May 22, 2006
    210
    3
    TN
    Home Country
    United States of America United States of America
    Tried your idea of changing sort name in the config. Didn't work for me.:(
     

    Insomnic

    Portal Member
    February 10, 2008
    15
    0
    Tried to manually edit the Sort Name field as well and it accepted the changes but the series are still sorted by pretty name (and I did checkmark the "sort series by sort name instead of pretty name).
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Let me explain how sorting (of series) is done:

    - If the view definition itself defines the sorting, this will override whatever you set in the config (sort instead of pretty). Note: earlier versions of the plugin had the views hardcoded to a specific sorting (prettyname), and depending on how and from which version you upgraded, those view definitions may still be in place. You can resolve this either in config clicking reset under views, or by manually removing the sort def. in the views in the db (be careful with this)
    - If the view does not explicitally set a sort order, the default is to sort by pretty name, unless you tick the option to sort by sortname in the config.
    - This is all useless because thetvdb.com does not currently return sortnames
     

    ScoopD

    Portal Member
    April 24, 2007
    37
    4
    Melbourne
    Home Country
    Thanks for the info Inker. There was sort name data from the previous way of getting data.

    So, if the sort name field is filled in then it will be used. What happens if there is sort name data in some records but not all. I am thinking that I should just copy the pretty name data across to the sort name field, then manually change the ones that I want (ones that start with THE). I would do this through the SQL Lite interface.

    I'll report back to tell if this has worked.


    Yep that worked. Don't know if it was the Reset of views as suggested by Inker or the copying of all Pretty names to the sort name field by SQL query, then changing the ones that I wanted to ... or the combination of both.
     

    mortstar

    MP Donator
  • Premium Supporter
  • January 30, 2008
    414
    41
    Home Country
    England England
    Thanks for the info Inker. There was sort name data from the previous way of getting data.

    So, if the sort name field is filled in then it will be used. What happens if there is sort name data in some records but not all. I am thinking that I should just copy the pretty name data across to the sort name field, then manually change the ones that I want (ones that start with THE). I would do this through the SQL Lite interface.

    I'll report back to tell if this has worked.

    This is exactly what I said - all data in the Sort Name field must be filled in, for all Series!?! :mad:
     

    Insomnic

    Portal Member
    February 10, 2008
    15
    0
    This doesn't do anything for me.
    All of my "Sort (original) name" fields are filled in, but the odd thing is that "Smurfs" works but it never had "the" in the sort name field though "the" is in the pretty name field. All other series that I manually changed the sort name from "The Title" to just "title" still sort by "the". I'd rather not play around in the SQL. Not a huge issue.
     

    ScoopD

    Portal Member
    April 24, 2007
    37
    4
    Melbourne
    Home Country
    I found that a lot of info appeared in the sort name field in the GUI, but in the actual database the data was not there.
     

    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
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    521
    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
    750
    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
    Top Bottom