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 02-20-2011, 10:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Getting list of property/metadata names attached to objects?

Can an API method be added to get the list of property/metadata keys attached to an object (such as FavoriteProperty, MediaFileMetadata, PlaylistProperty, etc.). Basically any object that can have a property/metadata attached to it. Why? I'm looking write a simple app (web or native, not sure yet) that is basically a prop/metadata editor. I'm really starting to use the properties, especially on favs, to store bits of data that I then use in various scripts, etc. The problem is there's no easy way to set/edit/delete these properties other than to write a script to set the values. I'd like to make this simple prop/metadata editor, but would really only be useful if I can get a list of the property names attached to objects and present the user with the ability to edit those values.
__________________
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 02-25-2011, 06:29 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
OK, these are in there for the next build, 7.1.3. But it was done slightly differently. Instead of returning a list of the property names, it returns a java.util.Properties object that contains a complete map of all the name->values. For MediaFile objects, this also includes all of the standard database fields in addition to the external property settings (and it was done so anything in there can be turned around into a SetMediaFileMetadata API call to set that value). This should make building that editor a piece of cake.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #3  
Old 03-05-2011, 12:55 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Lost track of this thread... just noticed the reply now. This is excellent. The editor will be rather easy once 7.1.3 is released.
__________________
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
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
Metadata Names/Values evilpenguin Batch Metadata Tools 8 08-13-2010 09:56 PM
MetaData not showing names in SageV7 JeffDerek Batch Metadata Tools 1 08-09-2010 02:11 AM
Getting ripped DVDs with similar names to list correctly jefff SageMC Custom Interface 4 01-16-2010 06:52 PM
List of property settings kenP SageTV Software 7 12-29-2008 09:08 PM
Widget type and property names GKusnick SageTV Studio 3 05-22-2008 01:35 PM


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


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