Custom views and grouping (1 Viewer)

tomeirik

Portal Member
June 28, 2007
6
0
Home Country
Norway Norway
Hi, sorry for the vague title, but this problem needed a little explanation...

I just started messing around with custom views in the database, and wanted a view that grouped my shows by who's watching them. So I added a field WatchedBy in the online_series-table, and used this view:

Code:
group:<Series.WatchedBy><;><;><;><nextStep>series<;><;><Series.Pretty_Name>;asc<;><nextStep>season<;><;><Season.seasonIndex>;asc<;><nextStep>episode<;><;><Episode.EpisodeIndex>;asc<;>

Surprisingly enough, this worked without a hitch. Then I thought it would be fun if I could tag a series with two names, so both me and my brother could have the series in "our" group. I noticed that Genre is split up this way, one show with several genres. So I inserted "|Me|My brother|" in the WatchedBy-field of a show, but it doesn't get split up, only shows as a seperate group called "|Me|My brother|". Is there anyway I can make this work without altering the source code? Skimmed through some of the source-code, but couldn't find anything separating the Genre-field from other fields. Also noticed Channel doesn't get split up (The Boondocks is tagged with two channels, Cartoon Network and Adult Swim), so I guess there's something specifying wich fields should be split, an wich shouldn't? Tried grouping a view by actor too, that worked great...
 

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Each table class contains a list of fields that should get treated as requiring splits, currenlty I think only actors and genre is in there for series, furthermore it might be that only the series class is actually checked by the view constructors. Reason being that there may very well be a split char ('|') in fields that we don't want to treat this way.

    If you can compile yourself, the easiest to change is in view.cs, line 429 and always set the attemptSplit to true, or add your table column in dbseries.

    So no, not possible without messing with sources.
     

    tomeirik

    Portal Member
    June 28, 2007
    6
    0
    Home Country
    Norway Norway
    Thanks, never compiled anything before, but I'm sure I can figure it out :) Thanks for the quick reply, and keep up the good work, I love the plugin!!
     

    Users who are viewing this thread

    Top Bottom