|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Quote:
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. |
#4
|
||||
|
||||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |