SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-15-2010, 09:33 AM
bradvido's Avatar
bradvido bradvido is offline
Sage User
 
Join Date: Nov 2010
Location: MN
Posts: 68
Cool Simple way to access metadata based on file name?

Hi, I'm new to Sage, (convert from BTV), and I'm hoping this is a simple question, but I haven't been able to find the answer in the forums.

Is there any way (API, or web service?) to get metadata from a Sage recording based on the filename? I just want the internal SageTV metadata, not TVDB etc..

I want to scan a directory of sage recordings and programatically get the meta data about them.

Thanks,
BradVido
Reply With Quote
  #2  
Old 11-15-2010, 12:40 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
There are a couple of solutions.

1. sagex-api/sagex-services (using either Java, or http)
2. Nielm's WebServer

For #1, you can either use java an get a mediafile based on the file path, and then use the MediaFileAPI, AiringAPI, and ShowAPI classes for accessing the various information. Or, you can use the sagex-services, which expose the sage api over http and allows you to return xml or json. If you have sagex-services plugin installed, just point your browser to "http://YOURSERVER:8080/sagex/api"

It will bring back a help page.

I've never used #2, but nielm's webserver can return information in xml.
Reply With Quote
  #3  
Old 11-15-2010, 12:53 PM
bradvido's Avatar
bradvido bradvido is offline
Sage User
 
Join Date: Nov 2010
Location: MN
Posts: 68
Quote:
Originally Posted by stuckless View Post
...For #1, you can either use java an get a mediafile based on the file path...
I've been playing around with the sagex/api page, but cant find a call to get info based on file path? can you point me to the right method i should be calling?

UPDATE: I believe I found it with: GetMediaFileForFilePath()

Last edited by bradvido; 11-15-2010 at 01:04 PM.
Reply With Quote
Reply

Tags
metadata


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
Update Metadata doesn't realize a file is a TV show.... bialio Batch Metadata Tools 2 09-26-2010 06:17 AM
Grouping DVDs based on Metadata TechJunkie SageTV Beta Test Software 2 06-16-2010 01:40 PM
Nielm's Web-based User Interface site spammed - no file or wiki zebra14 SageTV Customizations 2 11-11-2009 05:30 AM
Looking for a simple SageTV CCF file lovingHDTV General Discussion 10 11-02-2005 09:37 AM
Simple Audio File Browsing Wheemer SageTV Beta Test Software 2 09-20-2005 05:47 PM


All times are GMT -6. The time now is 05:17 PM.


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