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 08-28-2012, 07:15 AM
dinki's Avatar
dinki dinki is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 682
Need guidance on how to create additional files when recordings are created

Hey guys. I've been fooling around with XBMC and am wanting to try and integrate my Sage recordings and possibly live tv with XBMC. What I would like to do is create an .strm (XBMC playlist-like file (ascii text)) and a .nfo file (meta data for the recording) every time a new recording is started with Sage.


While testing, I am able to pull all the information I need from SageX. I can create the .strm and .nfo files just fine in Python but I have no idea how I can call these Python programs when the recordings start. I would also like to be able to delete these .strm and .nfo files when the user or system deletes the associated Sage recording.

Can anyone tell me how I can tie the file creation/deletion with my Python programs? Also, how long does it take for the meta data to be ready in SageX after a recording starts? Is it just pulling the data from the guide data or does it have to do some internet scraping to get some of the information?

Thanks
__________________
Intel Core i5-2500, 16GB RAM, OMV Linux 4.17, 3 TB of Data
SageTV 9 Docker, Open DCT Docker
Silicondust HDHomeRun Duo + Quatro
Sage Mini Client on Amazon Fire Sticks and Android TVs
Reply With Quote
  #2  
Old 08-28-2012, 09:36 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
You need to create a "General" plugin and then capture the events that are triggered when a recording ends and when a media file is deleted. Take a look at the source for the CommercialDetector plugin to see how that works. (On my project site on Google Code.)

You can call python from within Java by using jython. You can look at the NaviX plugin to see how that's done. You may determine it's easier to create the .strm and .nfo files from Java, that's up to you.

Take a look at the example code and post your follow up questions.
__________________

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 08-28-2012, 09:49 AM
dinki's Avatar
dinki dinki is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 682
Quote:
Originally Posted by tmiranda View Post
Take a look at the source for the CommercialDetector plugin to see how that works. (On my project site on Google Code.)
Thanks for the information. I couldn't find the source in the downloads or in the source tab on your project site. I'm probably overlooking the obvious.
__________________
Intel Core i5-2500, 16GB RAM, OMV Linux 4.17, 3 TB of Data
SageTV 9 Docker, Open DCT Docker
Silicondust HDHomeRun Duo + Quatro
Sage Mini Client on Amazon Fire Sticks and Android TVs
Reply With Quote
  #4  
Old 08-28-2012, 02:52 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Look here: http://code.google.com/p/tmiranda/so...e/#svn%2Ftrunk
__________________

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
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
SageTv recordings create 2 files - one works one is broken pschweig SageTV Software 1 12-19-2005 02:57 PM
MPEG files created with sage don't look good with other apps GBZEUS SageTV Software 1 01-06-2005 03:26 PM
Multiple part files created for a single recording LowBrow SageTV Software 9 08-28-2004 09:20 AM
Multiple Files Created in Sage 2.0 yoztanir SageTV Software 3 06-18-2004 01:30 PM
Problem playing sage created files JUC SageTV Software 11 05-31-2004 02:43 PM


All times are GMT -6. The time now is 12:56 PM.


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