SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-18-2010, 05:34 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Sensible plugin change request?

Before I submit a change request to Sage I would like a little sanity check please.

Looking at the plugin documentation for the sageEvent "FavoriteModified" I noticed the only parameter passed is the modified Favorite. I think it would be more sensible if the original Favorite was also passed so I do not have to do a lot of work to figure out a "best guess" on which Favorite was modified. In the Studio docs I see that the first parameter to UpdateFavorite() is the original Favorite so I think my request is reasonable.

Feedback from the gurus appreciated.

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
  #2  
Old 07-18-2010, 11:39 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I'm not sure I understand the question. The Favorite passed in to the event listener is presumably the same Favorite object as the one passed in to UpdateFavorite; what else would it be? But since the name of the event is FavoriteModified (past tense), then presumbly the event fires after the modification takes place, so calling FavoriteAPI methods on that object from within the listener will get you the new, modified values. Nevertheless GetFavoriteID should tell you which Favorite it is, since the ID is not mutable via UpdateFavorite.

If what you're asking for is a way to retrieve the old, unmodified values from inside the event listener, that's probably not going to be practical since those old values have been overwritten already. So maybe what you really want is a FavoriteAboutToBeModified event in which you can squirrel away any old values you need for whatever your post-modification listener does with them.

But again, you shouldn't need the old values just to recognize which Favorite it is. The FavoriteID is your unique, invariant handle on a Favorite's identity, and that's what you should be using as the retrieval key for any Favorite-related data you maintain outside the DB.

Or you could use Get/SetFavoriteProperty to store your custom Favorite data in the DB, where it will remain intact across calls to UpdateFavorite.
__________________
-- Greg
Reply With Quote
  #3  
Old 07-18-2010, 11:56 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by GKusnick View Post
Nevertheless GetFavoriteID should tell you which Favorite it is, since the ID is not mutable via UpdateFavorite.
Greg,

This was the piece of info I was missing. I want to be able to identify the old Favorite (before it was modified) and did not realize the ID was not changeable. Armed with the ID I can do what I need to do.

Thanks,

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
  #4  
Old 07-18-2010, 01:01 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yeah, they aren't making a new favorite object every time it is changed, they are just changing the modified values in the existing object. The FavoriteModified event is so you can update something else that might depend on the favorites.
__________________
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
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
Plugin Request: Configuration before install PLUCKYHD SageTV Studio 16 07-07-2010 04:43 AM
Home Automation Plugin Request: HomeSeer vipersmith SageTV Customizations 18 12-01-2009 02:04 AM
request for plugin:miniguide orky7 SageTV Customizations 4 01-12-2006 07:27 AM
Feature Change/Request? robertmcox SageTV Beta Test Software 6 03-31-2004 06:52 PM


All times are GMT -6. The time now is 06:08 PM.


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