SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Gemstone for v7
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Gemstone for v7 This forum is for discussing the user-created Gemstone custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 11-24-2012, 12:26 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by jusjoken View Post
Can you open an issue on the issues site with these pics and I will look into fixing this for the next release.

k
Done. Thanks for taking a look. I'm really liking Gemstone!
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #22  
Old 11-25-2012, 05:36 PM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
I'm also seeing (or, as the case may be, not seeing) a usercategory issue.

I have three categories set for my favorites - dads, parents, kids.

However, when i go into the usercategory filter menu on a flow, i only ever see "dads." The other categories don't appear, so i can't filter on them.

Perhaps this is related to the issue described above by alfi regarding the two kinds of categories.

i can add pics/additional info if needed.

thanks
Matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #23  
Old 11-25-2012, 05:44 PM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
Already on the issue log. Thanks for reporting.

J
Reply With Quote
  #24  
Old 11-25-2012, 11:30 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
What API call are you guys using to handle the usercategory filter? Because of the complex nature of UserCategories (that being individual Recording UserCategory Tags, as well as Tags associated with a favorite), Sage added a specific function to the FilterByMethod() call to handle this. If you are not using FilterByMethod for this, and instead just pulling it from GetMediaFileMetadata(), then you are only looking at the recording's UserCategory, and not the favorite's.

As far as I know, regarding the favorite based UserCategories, I think the only way to use them are via GetFavoriteProperty(fav as favorite, "UserCategory") and SetFavoriteProperty(fav as favorite, "UserCategory", cat as string), each of which use comma delimeted lists, and FilterByMethod.

I also think there is yet another "UserCategory" tied to manual recordings, that you get via GetManualRecordProperty( airing as airing, "UserCategory") and SetManualRecordProperty( airing as airing, "UserCategory", cat as string).

The way the default UI pulls the UserCategories to be displayed in the detailed info screen, and basically be the steps needed to do this filtering without using the filterbymethod call, is as such:
Attached Images
File Type: png UserCategoryCode.png (12.9 KB, 165 views)
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room

Last edited by Fuzzy; 11-25-2012 at 11:46 PM.
Reply With Quote
  #25  
Old 11-26-2012, 12:00 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I'm certainly not a java guy, but it looks like if you modified your GetUserCategory function as such, it should handle all the situations the core sagetv product handles:
Code:
public static String GetUserCategory(Object IMR){
        IMediaResource imediaresource = Source.ConvertToIMR(IMR);
        if (imediaresource!=null){ 
            if (phoenix.media.IsMediaType( imediaresource , "FOLDER" )){
                return "FOLDER";
            }else{
                String tCat = sagex.api.MediaFileAPI.GetMediaFileMetadata(IMR, "UserCategory");
		if (sagex.api.AiringAPI.IsFavorite(IMR)) {
			if (tCat.length() > 0) {
				tCat += ", ";
			}
			String tCat += sagex.api.GetFavoriteProperty(GetFavoriteForAiring(IMR), "UserCategory");
		}
		if (sagex.api.AiringAPI.IsManualRecord(IMR)) {
			if (tCat.length() > 0) {
				tCat += ", ";
			}
			String tCat += sagex.api.GetManualRecordProperty(IMR, "UserCategory");
		}
                if (tCat==null){
                    return "null found";
                }else{
                    tCat.replace(", $",""); ' remove potential trailing comma and space
                    return tCat;
                }
            }
        }
        return "";
    }
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room

Last edited by Fuzzy; 11-26-2012 at 12:24 AM.
Reply With Quote
  #26  
Old 11-26-2012, 06:45 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Thanks for digging into this. The code you found in Gemstone actually was only a test function that I should have removed as I am using the "hasUserCategory" function in Phoenix and in it I am checking for Manual Recordings but I was NOT checking the favorites part you pointed out... so I will update the Phoenix call and then the next push Stuckless does should solve this in Gemstone.

For the list produced in Gemstone UI... this one will require a new version of Gemstone to correct it.

k
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
Only 1 defined flow at a time possible? sagetv5150 Gemstone for v7 29 12-25-2012 11:50 PM
Bug in Category Flow? cwills75 Diamond 2 07-20-2011 06:14 AM
Movie Flow and Collections? wrems Phoenix 3 07-06-2011 10:25 PM
EPG not populating rfeyer SageTV EPG Service 9 05-09-2011 07:04 AM
Populating Tables from Java Functions tpboyce SageTV Studio 3 05-17-2009 05:11 PM


All times are GMT -6. The time now is 11:53 PM.


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