Posts: 24
Joined: Sep 2007
Reputation:
0
If there is a sort-order field, is it some kind of numeric only field? Or is it a text field that I can put in the title the way I want it sorted?
If it's a text field, that would work for me, I would have to go through my 400+ movies and put them in the right order, which I have no problem with...but like RockDawg, I need to know which field it is in the DB, and also if it's not available for movies, can it be added for them in a future release?
Thanks!
Posts: 24
Joined: Sep 2007
Reputation:
0
Is there anywhere that has a "map" of what the fields in the databases are? They're just labeled C1 C2, etc...and I can't find on the wiki anywhere of what they're supposed to be for.
Posts: 727
Joined: Oct 2007
Reputation:
17
2007-11-11, 11:07
(This post was last modified: 2011-02-25, 13:00 by billyad2000.)
Would Love the ability to move movies up and down the order.
Not sure what all the fields ar for in the db but some are blank as has been mentioned but there doesnt seem to be any numerical record field.
If there was it would be easy enough to move individual records up and down the db
Posts: 24
Joined: Sep 2007
Reputation:
0
I'm still trying to figure out what each field is for, and if there isn't a sortorder try to add one...so far I haven't come up with much in the actual code. Anyone else with input?
Posts: 1,546
Joined: Jun 2005
Reputation:
1
I have tried entering an alternate movie name in every blank field in that table and I don't think any of them are some type of "sort order" since it never affected my sort order in XBMC.
Posts: 24
Joined: Sep 2007
Reputation:
0
Yeah see that would be perfect right there...any word from devs on this?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
It's not there. A patch would be welcome.
Posts: 24
Joined: Sep 2007
Reputation:
0
I'll be happy to patch it in if someone can point me in the right direction...I've searched through tons of code and so far I managed to find the sorting routines, but not the portion of code that passes the database fields to that function to be sorted.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Why "a patch would be welcome" is: Because I don't have time to devote to it.
What you'd need to do is:
1. Add the field to the VideoInfoTag.
2. Add the field to the database (VideoDatabase.h - you have to add to an enum, and to the offsets section - hopefully there's enough unused columns for this.
3. Adjust the sorting routines in SortFileItem to sort by the sort field you added (if it exists) rather than the title.
Once you've taken a look at that, just ask if you need more info.
Cheers,
Jonathan
Posts: 24
Joined: Sep 2007
Reputation:
0
Will do, I'm just getting my dev laptop back up and re-installed visual studio last night, now I need to find the XDK on one of my hard drives somewhere then I'll start messing with it this weekend and see what I can do.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You can just use the win32 dev environment if you don't want to bother with the XDK - you just need the DirectX SDK.
tools/Win32/XBMC_PC.sln.
Cheers,
Jonathan
Posts: 24
Joined: Sep 2007
Reputation:
0
Cool, I'm leaving work in a few, I'll post a patch if I can this weekend...