|
SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Properties for Airing and/or Show objects?
Is there a reason that airings nor shows have properties? If they could, it would be most appreciated. If not, I'll probably roll my own plugin to add this feature. I love using the properties features on media files and favs because I don't have to worry about cleaning them (i.e. delete the object, the properties are deleted automatically).
I'm looking to remove the need for my separate SQL database for the next version of SRE and in order to do this I need to be able to store some metadata about airings and/or shows else where. Ideally, I'd like to be able to use Get/SetShowProperty() and Get/SetAiringProperty() type API methods. If this isn't possible, I think I'll write a plugin that provides this ability in a separate plugin (backed by probably an SQL database) and at least be able to remove the SQL db from SRE. If this isn't possible, is there a technical reason why? I kind of assume there is b/c otherwise I figure it would have been introduced at the same time the rest of the property abilities were added for other objects.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#2
|
||||
|
||||
I think for Airings you can use GetAiringManualRecordProperty(), I'm pretty sure that works for any Airing, not just one that is a Manual Recording.
For Shows there isn't much you can do unless you use AddShow and "hide" the properties somewhere in the MiscList[]. Tom
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#3
|
|||
|
|||
Quote:
EDIT: The javadocs aren't clear. As I read them, the method should only work if an airing becomes a manual recording. If it happens to work and store props for any airing, even ones not scheduled to record, then that might be an unintentional feature/bug, which could be squashed at any point in the future. Hopefully Narflex will clear this up on Monday. EDIT 2: Quick test in Groovy shows that the props don't persist for airings that aren't scheduled to record. So I'm back to my original request. Quote:
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... Last edited by Slugger; 04-10-2011 at 06:32 PM. |
#4
|
||||
|
||||
This was asked and answered once before. As I recall, the issue is that Airing and Show objects are volatile and get deleted and recreated during EPG updates. Faves and Manuals persist and therefore can support custom metadata properties.
__________________
-- Greg |
#5
|
|||
|
|||
Yeah, I thought we had this discussion before, but it seems to me that the objects are recreated with the same id because when I, for example, use an airing id as the key in my SRE db, that key remains valid and points to the same airing object for days or is this an incredibly lucky coincidence? So my point, I guess, is that even though these objects might be deleted and recreated with EPG updates, the key values remain unchanged after each EPG update, which suggests that properties could be maintained in the core (perhaps in a separate table in wiz.bin, keyed by the object id, which is exactly what I end up doing anyway, just in a separate database).
Though now I realize that if I happened to try and clean my table of props in th SRE db during an EPG update then I probably could incorrectly figure an airing has disappeared. I should probably be checking for active EPG updates during my cleanup thread.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#6
|
||||
|
||||
Thanks for checking. I use that method in one of my plugins but I always make sure the Airings are manual records.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#7
|
||||
|
||||
Quote:
__________________
Jeffrey Kardatzke Founder of SageTV |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Easy way to dynamically build classes/objects | PLUCKYHD | SageTV Studio | 27 | 02-25-2010 06:54 AM |
Moving objects leaving trails(after images) | xxilikedirtxx | Hardware Support | 1 | 02-20-2006 05:58 PM |
Moving objects flashing - interlace issue? | lbeagley79 | Hardware Support | 15 | 10-14-2005 08:34 AM |