INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Need help with a Theater View view, multiple sorting schemes  (Read 1756 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2661

I'm having some trouble getting a specific theater view set up for movies. My intentions are to have a grid view that is listed alphabetically by movie title UNLESS the movie has a series tag, in which case the series will be listed. I have no problem setting this up using FirstNotEmpty([series], [name]) and sort by Name (a-z).

I'm having difficulty with the next step. If a user clicks into the series I would like the series to not be organized alphabetically, but by release date. I can alter the sorting in the library view, but this also applies to the sorting in the parent level so the movies/series end up categorized by date, which is not what I want.

So how can I sort the parent grid alphabetically and then a subcategory by release date?
Logged

tls62dk

  • Galactic Citizen
  • ****
  • Posts: 406
Re: Need help with a Theater View view, multiple sorting schemes
« Reply #1 on: June 30, 2017, 08:05:05 am »

Although I am using MC22, I have the view you are looking for I think.

Under Movies I have created a view called Title. Instead of selecting a library field in the Category window, I have created an expression in this case called Movie Series.

Code: [Select]
if(isempty([Series]), [Name]Delimit(Watched(2), , / ), Fixcase([Series],3) SERIES)
Still in the Category windows I set Sorting to Ascending.

In the Set Rules For File Display I have sorting set Episode (a-z), Year (a-z) and Name (a-z)

This gives me a view where all movies are sorted alphabetically until I drill down into a series where they are sorted in release order.
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Need help with a Theater View view, multiple sorting schemes
« Reply #2 on: October 01, 2017, 06:33:28 pm »

Although I am using MC22, I have the view you are looking for I think.

Under Movies I have created a view called Title. Instead of selecting a library field in the Category window, I have created an expression in this case called Movie Series.

Code: [Select]
if(isempty([Series]), [Name]Delimit(Watched(2), , / ), Fixcase([Series],3) SERIES)
Still in the Category windows I set Sorting to Ascending.

In the Set Rules For File Display I have sorting set Episode (a-z), Year (a-z) and Name (a-z)

This gives me a view where all movies are sorted alphabetically until I drill down into a series where they are sorted in release order.
Thanks for posting this as I was looking for something like this and your solution is close to perfect for me.  I've got my movie views split up a few ways, such as:

Blurays
DVD's
Blurays & DVD's

When I've got an actual series, such as the Lord of the Rings or Star Wars movies, this solution works just fine as I end up with the "STAR WARS SERIES" item in the list and then the individual movies sorted by "episode #" when I select the series in the list.

However, I've got a number of movies that I have on both DVD and Bluray.  With these, I sometimes end up with a "series" entry (that isn't all caps) in the main list and sometimes end up with the different versions listed separately (even though the name field is the same).  The reason for this is the addition of the Watched flag - if one version has been watched and the other hasn't, then the essentially end up in different groups.  I can get around this by removing the call to the Watched function, but then the main list won't display the watched checkmark for anything that is a single entry in the list (I only have the DVD or the Bluray, but not both).

So I'm wondering if there's a way to group items with the same name, but also preserve the watch flag in the main list...  I'm not sure if there's a way for an expression to figure out if it will result in a group or a single entry; if so, I could conditionally add the watched flag when it's just a single entry.  If anyone has any ideas, I'd appreciate it.

FWIW, I've extended this a bit to sort by Season, Episode, Year, and Name, which allows me to include things like TV series in the view and sort the individual discs for the series properly or to handle more complex series that might have something like a movie disc and an extras disc for each movie.  One could take this even further and also include the disc # tag in the sorting (I think between Episode and Year would make the most sense), which would be useful for movies that are split over multiple files / discs.
Logged
Pages: [1]   Go Up