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 06-17-2009, 07:01 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
New MediaFile Listener

I see there is a listener for new mediafiles that are imported, is there anyway to identify when a new recording is added? I want to process a recording as soon as it is completed to build some metadata for the recording and want to do it as soon as the recording is completed...

Thanks,
Jeff
Reply With Quote
  #2  
Old 06-17-2009, 07:21 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I took advantage of Sage's MediaFileMetadataParser plugin interface for bmt. I'm not sure if it's gets called when the recording is started, or finished, but it does get called. You can look at the bmt implementation if you want to see how I use it.
Reply With Quote
  #3  
Old 06-17-2009, 07:38 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
That is quite a coinsidence... I was just looking at that same source on google.... I had seen your comments in the debug log during a library import and decided to check on google... Is there any docs on that?

Thanks,
Jeff
Reply With Quote
  #4  
Old 06-17-2009, 07:55 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I think I orginally stumbled across this via a plugin that greg wrote, which was doing something different, but I got the general idea from there.

There is only one method to override...
Code:
public Object extractMetadata(File file, String arg)
File is your media file, arg is ???? so ignore it, and it should return a java.util.Map<String,String> of the metadata where key is a Sage metadata property key.
Reply With Quote
  #5  
Old 06-17-2009, 08:02 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
Thanks for the info, I will give it a try and see what damage I can cause..

Thanks for all of your work ( and Mike, etc.. ) on phoenix also...
Jeff
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
how to setup listener/hook for close/alt+F4 koelec SageTV Studio 5 06-23-2006 01:14 AM
Listener Question BobPhoenix SageTV Studio 8 05-22-2006 04:38 PM
How to get type of listener widget ? dflachbart SageTV Studio 3 02-18-2006 10:48 PM
Using listener to execute Command line program danward79 SageTV Studio 4 11-05-2005 01:56 PM


All times are GMT -6. The time now is 02:59 PM.


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