Movies beginning with "The"

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #41
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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
goake Offline
Member
Posts: 58
Joined: Aug 2007
Reputation: 0
Location: Scotland
Post: #42
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.
find quote
keithskaggs Offline
Member
Posts: 65
Joined: Feb 2008
Reputation: 0
Post: #43
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!"
(This post was last modified: 2008-11-02 17:11 by keithskaggs.)
find quote
goake Offline
Member
Posts: 58
Joined: Aug 2007
Reputation: 0
Location: Scotland
Post: #44
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
find quote
keithskaggs Offline
Member
Posts: 65
Joined: Feb 2008
Reputation: 0
Post: #45
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
find quote
goake Offline
Member
Posts: 58
Joined: Aug 2007
Reputation: 0
Location: Scotland
Post: #46
Yep, no doubt about it, it is a great piece of software. Support is second to none - within a couple of hours we have a customised version that sorts our own particular needs exactly.

At work we have software that we pay £50K a year in support costs, ontop of what it cost in the first place, and it cant hold a candle to this.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #47
Honestly - it's a files view. If you want them to sort differently then just rename them - it's a simple fix that takes all of 5 seconds.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
goake Offline
Member
Posts: 58
Joined: Aug 2007
Reputation: 0
Location: Scotland
Post: #48
Jonathan,

But its so much more than a files view!

I'll explain my set up, and hopefully all will become clear as to why its such a big deal.

To me, there are only two types of movies - movies the kids can see, and movies the kids cant. To facilitate this, I use profiles with two accounts, one for the kids and one for adults. I have configured two bookmarks - 'DVDs' and 'Kids DVDs', each bookmark relates to half a dozen physical shares. The adult profile needs a password, the kids profile doesnt. Its a shared libray.

Every movie is stored within the library, and has a file name that exactly matches the movie name as in IMDB - ie 'The Ant Bully (2006).ISO'. I have the 'Hide Media Extensions' option on, so that in file view, the file name is the movie name.

Under videos I have the 'View:Icons' option and 'Sort By:Name' and I get 15 IMDB thumbnails on each page, with the IMDB movie name underneath. This is perfect, everybody can find everything - its not just a files view, its a movie listing.

Considering I have 60 movies begining with 'The' , this latest change is a big deal. Especially since for the purist who wants to see all the files beginining with 'The' sorted together can just use the 'Sort By:File' option to get their desired effect.

It just seems a bizaar change - and for me it seems like a change for the worse. But don't get me wrong, I'm not complaining. Its an awesome product, the support is brilliant and like Keith says its just fantastic that we can do little changes to the code like this ouselves and fine tune it to our exact requirements - what more could an end user ask for? especially in a free product.

On a different note, I've looked through all the files relating to this, and I'm sure I could do the changes necessary to have two options for 'Ignore tokens when sorting' - one for library mode, and one for files mode. If I did all the changes, and everything works, is there any way I could get this into the main source code?

Cheers
Glen
(This post was last modified: 2008-11-02 23:45 by goake.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #49
Feel free to do up a patch - others may find it useful. I doubt it'll be added to be honest, as we have other plans in mind for the current files view, but that's just my personal opinion.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Cam73 Offline
Junior Member
Posts: 36
Joined: Aug 2008
Reputation: 0
Post: #50
I thought I would lend weight to this discussion.

Personally I have been an XBMC enthusiast for years (I have 4, my brother has 2, my other brother has one, my mother has one, and I’ve converted about 6 other friends to XBMC). In the past I have bought old XBOXes and set them up for XBMC...now at home I run 3 XBOX based XBMC media centres and 1 Windows based).

I have always used the 'ignore tokens' option and i never use the library mode....same for all the people I’ve set up.

This changed behaviour is much worse in my opinion.

I would dearly love to have this option back the way it was for the many years I’ve used XBMC...I don’t mind if it’s an extra option, but I really prefer the way it used to be to the way it is now.

Please don’t take this as a rant, or a criticism of the great work being done by the team... please see this as what it is...am impassioned plea from a devoted and long time user.

Thanks
find quote
Post Reply