![]() |
|
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
|
|||
|
|||
Download API Javadoc
Is there anyplace to download the API Javadoc for SageTV? I like that it is online, but want to import it into my IDE for development.
Paul
__________________
Paul Hocker - SageTV 6.2.7.149 |
#2
|
||||
|
||||
I second that.
Additionally, the API documentation available at http://download.sage.tv/api/ doesn't have the full API. For instance, where can the api documentation be found for the classes sage.Favorite and sage.Channel? |
#3
|
||||
|
||||
Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#4
|
||||
|
||||
yep, I see all the sage.api.* classes like sage.api.ChannelAPI; I do not see the sage.* classes like sage.Favorite that are referenced by the api classes.
|
#5
|
||||
|
||||
The Sage API Javadoc is a "Ficticious" api. It's what the API would look like, if it were actually provided. (I realize that doesn't make much sense, but the Sage Javadoc does not document "real" classes")
Look at the example in the package summary. You'll see if you wanted to call MediaFileAPI.GetMediaFiles(), you'd actually call Code:
Object[] mediaFiles = (Object[])sage.SageTV.api("GetMediaFiles", null); Hope this makes some sense.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient Last edited by stuckless; 10-04-2008 at 02:49 PM. |
#6
|
||||
|
||||
Check out GKusnick's Studio Tools. He has generated a complete set of Java wrappers for the SageTV API and has the Javadocs included in the download.
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#7
|
||||
|
||||
Cool, thanks for the info guys. Just as an FYI, I want to write some utilities to manipulate sage from outside of SageTV, probably through a cron job. For instance, I want to clear the watched flag and delete a specific recorded show daily at 4:55 PM.
Will these APIs allow me to do this, or will the only run inside an STV? Thanks! -Justin |
#8
|
||||
|
||||
Quote:
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#9
|
|||
|
|||
Quote:
![]() The only way to achieve this would be to establish a custom thread within SageTV that would 'listen' to commands from an external program, e.g. like Niel's webserver ... Dirk Last edited by dflachbart; 10-04-2008 at 04:22 PM. |
#10
|
||||
|
||||
Quote:
![]()
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#11
|
||||
|
||||
Quote:
So, in a separate jvm, I can run code like this... Code:
File[] libDirs = Configuration.GetLibraryImportPaths(); if (libDirs!=null) { for (File f : libDirs) { System.out.println("Library import dir: " + f.getAbsolutePath()); } } And no I haven't released the API as of yet. I will, but I only finished the main part of it today, so it's not quite ready for release. As a side note to the API, you can transparently move the your code from being embedded within sage, to another jvm without have to recompile or change your code. So, if you start off developing code within Sage, you can later move it to another process... or if you start of writing code in another jvm process... you can later movet hat code to run within sage.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#12
|
||||
|
||||
Awesome stuckless! Anxiously awaiting your sw release!
|
#13
|
||||
|
||||
This is how my API wrappers are generated as well (but without the RPC part of course).
I'm wondering if it would make sense to pool our efforts, perhaps by implementing your RPC wrappers as a subclass of my API wrapper class, so that existing code that uses my wrappers can be easily ported to your RPC wrappers just by invoking a different constructor for the API object. If we're going to have two sets of API wrappers in circulation, it seems like it might be a good idea if they obey a common interface. Getting back to the main topic, it seems like it wouldn't be hard to write a script to pull down the online docs page by page to a local directory. This is in essence what the wrapper generators do.
__________________
-- Greg |
#14
|
|||
|
|||
Quote:
Dirk |
#15
|
||||
|
||||
Quote:
![]() I did go looking for your generator some time ago... but i didn't find it with your tools download, so i assumed that you closed sourced it. It think if we are going to discuss this further we should either do it offline or in a dedicated "SageTV API" thread, so that we don't hijack this one any further.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#16
|
||||
|
||||
Hey guys -
Stuckless, your API works very well. Had it up and running in minutes. After looking at some of this stuff it looks like I can do what I need to do by including something in the sageTV server runtime as a startup class, or by doing what I was initially planning on doing (external cron job) with Stuckless' API. Quick question, does anyone know how the mediaMask parameter on MediaFileAPI.GetMediaFiles() works? I don't see any reference to it in the documentation so have no clue what to pass for a mask value. I was planning on looking up TV recordings for "NFL Total Access"; and so far the only way I see to do this is to look up all media files (that's a lot) with the MediaFileAPI and iterate over those that match IsTVFile(). Is there a way to look up media files by Favorite? Fun stuff! -Justin |
#17
|
||||
|
||||
Quote:
__________________
-- Greg |
#18
|
||||
|
||||
I found this post by Andy.
Code:
Database.SearchForTitles("NFL Total Access","T");
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#19
|
||||
|
||||
You guys are awesome.
|
#20
|
||||
|
||||
Hey guys, I've got it working; I implemented it as a simple java app that finds local recordings of NFL Total Access, clears the watched flag and deletes the file. I'll just drop it as a cron job on my linux box and I'm all set. Stuckless, your API works flawlessly. Thanks for all the help everyone! Just gotta find some cool stuff to do with these APIs now.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where can I download the latest channel Icon for Dish Network | thenewguy1979 | SageTV Software | 3 | 09-29-2008 08:47 AM |
SageTV V6.3 is now available for Win/Linux! | Narflex | Announcements | 1 | 03-07-2008 12:33 PM |
Sage API RMI Server | drjava | SageTV Customizations | 11 | 11-23-2005 11:35 AM |
Unable to download 4.0 client | Ralnee | SageTV Software | 2 | 11-06-2005 10:58 PM |