SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-10-2011, 04:31 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
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...
Reply With Quote
  #2  
Old 04-10-2011, 05:57 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
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.
Reply With Quote
  #3  
Old 04-10-2011, 06:22 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by tmiranda View Post
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.
Anyone know for sure if this is correct? If so, then I'm set as far as SRE is concerned. I'd still have a use for Show object properties, if it were available (for other things).

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:
For Shows there isn't much you can do unless you use AddShow and "hide" the properties somewhere in the MiscList[].

Tom
I'd roll my own plugin backed by a separate SQL db before going this route.
__________________
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.
Reply With Quote
  #4  
Old 04-10-2011, 09:15 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote
  #5  
Old 04-11-2011, 05:14 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
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...
Reply With Quote
  #6  
Old 04-11-2011, 06:03 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Slugger View Post
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.
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.
Reply With Quote
  #7  
Old 04-11-2011, 11:53 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Slugger View Post
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).
While they usually do stay constant; they do have the possibility of changing if the EPG update warrants a change...due to that volatility we don't want to add this as usage of it would then quite often have unexpected results.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
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
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


All times are GMT -6. The time now is 07:01 PM.


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