|
Gemstone for v7 This forum is for discussing the user-created Gemstone custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
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 |
#22
|
||||
|
||||
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 |
#23
|
|||
|
|||
Already on the issue log. Thanks for reporting.
J |
#24
|
||||
|
||||
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:
__________________
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. |
#25
|
||||
|
||||
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. |
#26
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |