Posts: 6
Joined: Jun 2007
Reputation:
0
I wholeheartedly agree with mcowher. I don't use Library Mode because it simply takes too long to scan. I really want the "Ignore Tokens" option back in File view mode. IMO, that would make it more consistent. If you don't want that you turn the option off. If you do, you turn it on. Making it the same in File View and Library View is better.
Posts: 54
Joined: Sep 2007
Reputation:
0
In all Windows builds I've tried, the "ignore tokens" for sorting does not seem to work (at least not in file view, which I always use). Hence, all movies beginning with "The" are grouped together under "T".
I would have put this down to being a quirk of file view, but XBMC on Xbox always ignored the tokens correctly in file view.
Vista Home Premium, Core2Duo T8100, Nvidia 8400M GT, 2GB RAM
Posts: 26,215
Joined: Oct 2003
Reputation:
187
That's intentional. It was deliberately changed so that it doesn't affect files view.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You are welcome to change it yourself if you wish.
It will not be changed back for Atlantis.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Yes, it's an easy change. See GUIViewStateVideo.cpp
Compare the Files section with the Nav section - basically you use SORT_BY_LABEL_NO_THE when appropriate instead of SORT_BY_LABEL etc.
Posts: 54
Joined: Sep 2007
Reputation:
0
Excellent - will give it a go on the weekend, thanks.
Vista Home Premium, Core2Duo T8100, Nvidia 8400M GT, 2GB RAM
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
again, as kraqh3d has ALREADY stated;
this used to be inconsistent across file views. i personally think it is just as it should be now. if you want your files sorted in a different order, rename them!
when i list my files i dont want the application to feck around with the list at all.
listing movies or shows however, is a different matter.
Posts: 58
Joined: Aug 2007
Reputation:
0
Without getting into the ins and outs of whether 'Ignore Tokens' should work in file mode, the simple fact is, it doesnt.
My four year old cant understand how to use 'libray mode' and cant understand why his favourite movie 'The Ant Bully' is not first in the list.
I know I'm a terrible parent, but I'm sick of being dragged out of bed at 5:30, whereas he used to be able to start the movie himself and let me sleep.
I've spent alot of time getting TortoiseSVN, visual studio installed, the XBOX SDK and all the files but can't work out for the life of me how to change 'GUIViewStateVideo.cpp' to make it go back to how it used to work. Can someone give me some pointers of how to do this?
I'm all for people helping themselves - and there is enough information out there that I'm sure I'll be able to work out how to recompile, but becomming a proficient C# or C++ (or whatever it is) programmer is beyond my skill set.
Any help would be really appreciated.
Posts: 65
Joined: Feb 2008
Reputation:
0
2008-11-02, 17:02
(This post was last modified: 2008-11-02, 17:11 by keithskaggs.)
This worked for me but I haven't fully tested it. I just checked one of my sorted directories in file mode and "The" was ignored properly. I believe this disables "The" even if you turn off "Ignore Tokens". I prefer to always ignore "The" no matter what mode I'm in. So any way, here is my inelegant solution.
In the file 'GUIViewStateVideo.cpp', open with notepad and replace all occurannces of '(SORT_METHOD_LABEL,' with '(SORT_METHOD_LABEL_IGNORE_THE,' and then recompile.
Keith
"I'm not a programmer but I did sleep at a Holiday Inn Express last night!"
Posts: 58
Joined: Aug 2007
Reputation:
0
Cheers Keith!
Tried that and it worked - now I've gone on one step further...Changing the line:
AddSortMethod(SORT_METHOD_LABEL, 551, LABEL_MASKS("%L", "%I", "%L", "")); // FileName, Size | Foldername, empty
to:
if (g_guiSettings.GetBool("filelists.ignorethewhensorting"))
AddSortMethod(SORT_METHOD_LABEL_IGNORE_THE, 551, LABEL_MASKS("%L", "%I", "%L", "")); // FileName, Size | Foldername, empty
else
AddSortMethod(SORT_METHOD_LABEL, 551, LABEL_MASKS("%L", "%I", "%L", "")); // FileName, Size | Foldername, empty
And it links the sorting back to the 'Ignore tokens when sorting' setting.
One thing I dont understand about this change in the first place, in file mode I have the option to sort by 'Name', 'Size', 'Date' & 'File'. It makes perfect sence to me that the sort by 'Name' option takes account of the 'Ignore tokens when sorting' setting. If you want the files listed exactly as they are, use the sort by 'File' setting.
The way it is now in the latest builds, I cant see any differnece between the sort by 'Name' option and the sort by 'File' option. Is there a difference?
Glen
Posts: 65
Joined: Feb 2008
Reputation:
0
It did not work for me. But that's OK. I'm quite happy to never have "The" used for sorting. I'll stick with the way I did it, I'm just too lazy to try and decipher the If then Else statements.
How great is it that even a non programmer can customize changes to create our own custom version of such a great piece of software?
Keith