SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-16-2008, 04:50 PM
skiingwiz skiingwiz is offline
Sage Aficionado
 
Join Date: Jan 2005
Posts: 366
How to sort My Videos by filename

Short version: How can I make the My Videos section sort on file name instead of video title.

Backgroud:
I've been experimenting with .properties files for video files. (Mostly backed-up television shows.) This has worked out great so far, except that My Videos is sorting based on the Title, and I'd prefer it sort on the file name.

For example, Season 1 of House has been my test bed for all of this. So I have a video whose path is "\House\Season 1\01x01 - Pilot.avi". The Title is "Pilot", which is what is used for sorting. I'd like it to use "01x01 - Pilot.avi" for sorting so that the files sort in the order of airing.

I have tried some studo modifications, but so far no luck. I have tried replacing the line "GroupedVideos = Sort(GroupedVideos, false, "CaseInsensitive")" with varios versions of SortLexical.

I have also tried setting the Track property of the file and then sorting by that, but the Sage API says it returns 0 for the track if it is not a music file.

Ultimately, I could just make the title "01x01 - Pilot", but I consider that my last resort.

Any help or suggestions would be appreciated. Thanks!
Reply With Quote
  #2  
Old 11-19-2008, 06:43 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
IIRC, I left the "Title=" field blank in the .properties file. If the title field is blank, Sage will sort by the filename.

Try this. If it doesn't work let me know and I can dig into my brain and try to get the real answer. (I'm not at home at the moment and can't look for sure)

BTW, you can set a mask in the excellent Batch Metadater Updater App by Stuckless IIRC so that it will write the .properties files with the IMDB data but always leave the Title= field blank.

Chuck

Last edited by ChuckSchick; 11-19-2008 at 06:47 AM.
Reply With Quote
  #3  
Old 11-19-2008, 06:55 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
Oh... I believe I had to change the timestamp of the files to get Sage to refresh them in the library.

I did this as a batch with, http://www.irnis.net/soft/xtst/ "express timestamp toucher" (free)
Reply With Quote
  #4  
Old 11-19-2008, 06:08 PM
skiingwiz skiingwiz is offline
Sage Aficionado
 
Join Date: Jan 2005
Posts: 366
Yes, that does work. Thank you.

Idealy, I would like to display the title and sort by filename, but for now, this will work.

Thanks again.
Reply With Quote
  #5  
Old 11-19-2008, 07:15 PM
ryttingm ryttingm is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 144
In file system view things are sorted by the name of the folder not the title. I already take advantage of this to help sorting the way I want. For example, I don't want it to use "The" at the beginning to sort on. So I'll have the folder named "Three Musketeers" and the title called "The Three Musketeers". It then gets sorted with the S. This only works in file system view, not in genre or title.

-Mike
Reply With Quote
  #6  
Old 11-20-2008, 08:52 PM
skiingwiz skiingwiz is offline
Sage Aficionado
 
Join Date: Jan 2005
Posts: 366
That may be the case for folders ( I am not setting the title for folders, so I didn't know that). For the files within the folders, however, it is definately sorting by title, if the title is present.

That is a good tip for folder sorting, though. Thanks for that.
Reply With Quote
  #7  
Old 11-21-2008, 11:15 AM
ryttingm ryttingm is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 144
I say folder because it is a folder when you have the VIDEO_TS structure. I'm surprised it doesn't work for files. I'll peek into the STV xml to see how it's actually sorted in filsystem view.
Reply With Quote
  #8  
Old 12-31-2008, 01:01 PM
ryttingm ryttingm is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 144
I can confirm that even with files, it is definitely sorting by filename and not by title when in file system view. I recently got a fantastic 4 blu-ray. I created a file Fantastic 4.ts and it is being sorted with the Fs in filesystem view, and not with the Ts even though the title is set to "The Fantastic 4".

-Mike
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricted Imported Videos farscapesg1 SageMC Custom Interface 11 10-20-2008 10:19 PM
Videos Organized by MPAA Rating, Then Genre osburnfamily SageMC Custom Interface 0 08-31-2008 01:26 PM
Sort order in Videos nissse SageTV Customizations 1 08-19-2008 11:51 PM
Browsing non-SageTV videos otakucode SageMC Custom Interface 0 06-22-2008 04:45 PM
6.2.6 Import Video's folder bugs? iammike SageTV Beta Test Software 8 09-01-2007 01:19 PM


All times are GMT -6. The time now is 03:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.