SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 10-16-2013, 11:12 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
Quote:
Originally Posted by PiX64 View Post
If u have sage web server and sagex installed u can hit

Http:// sage server ip : port/ sagex/api

U can find a whole slew of callable stuff there including custom functions that live in /sagex/ directory on sage server.
I think this is the way to go. Many people already have the sagex libraries and web server installed. Having said that, I think the API you found is the same.

As for fan art and meta data, you should try to integrate with BMT. It's the premiere meta data scraper. It may help with the missing fan art problem (can't say for sure).

More info here:

http://forums.sagetv.com/forums/forumdisplay.php?f=46

Lastly, I have PlexConnect installed and working. I'd be willing to try this if you have a link to your latest code. Do you have a project on GitHub? I'd love to check it out. I might be able to assist.
Reply With Quote
  #22  
Old 10-17-2013, 07:35 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by SageWizdom View Post
So, with the great tip about the restful api's, I'm chasing fan art now. The biggest problem I run into is when there is no fan art.... what would you want to see?

I've got the basics for my next release (menus, image grids, fan art) but ... no fan art is blank slate. Is it possible for fan art to create an empty poster with just the show name (as a backup)? I'm looking into this now. Otherwise, System is pretty usable (I use it daily).

General update, I was calculating which ports are used by what, and I think I can get it to run side by side with Sage on the same box, no extra server. I need to double check all the ports.... this will probably be the next release in a week or so (after gui clean up)

----- Clarification ------
All media processing and loading is done directly by the AppleTV, so I can not validate the image... it has to *always* work, or I need to know in advance that it wont work, and change the URL on the back end.

So I have that issue as well in the Plex Integration code. If there is no fanart stored in BMT and therfore not available via sagex, there isn't anything you can hit to say "hey give me a dummy art with show name on it" AFAIK. This is available in the phoneix UI code, but i don't believe that Sean built this into the backend.

You could create some code in the custom JS if you are using it which tests for the presence of the image file, and if it doesn't exist, handle it there. presumably creating a dummy folder with name of show on it....
Reply With Quote
  #23  
Old 10-17-2013, 04:09 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Quote:
Originally Posted by tvmaster2 View Post
not really understanding the technical side, I wish I knew how so I could help you with this, as it seems like a brilliant idea.
However, can you explain (as if I were in fourth grade lol) the bit about hijacking the Apple Trailer feed...does this mean that the Apple Trailer feature will not work, or is there some kind of rerouting in place after the connection to Sage is made to enable connection to Apples trailer servers?
Hi, Thank you for the offer, and a great question. Currently, the answer is YES. When using SageConnect, the Apple Trailers application will only show SageTV. I believe it is possible to make the system smart enough to see a trailer request and do trailers, but it definitely doesn't do this right now. That said, I think (and will verify) the movies app also shows trailers.

As for helping, anything you want to do would be great. Even just reading the instructions and giving feedback on what doesn't make sense, or asking questions I can use as part of a FAQ is helpful because then I can try and fix that. I'm definitely learning the SageAPI so if you know that, it would be helpful.

Lastly, if you have an Apple TV and want to try this out. It would be very helpful to simply hear feedback. ex. "Step 7 doesn't work on my computer." I know this works with my system, but I am certain that I'm not checking enough errors or plugins, etc and it will take a while before the "failures" are obvious enough for me to figure out how to fix them.

Thanks!

https://github.com/SageWizdom/SageConnect
Reply With Quote
  #24  
Old 10-17-2013, 04:24 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Quote:
Originally Posted by Comitizer View Post
http://forums.sagetv.com/forums/forumdisplay.php?f=46

Lastly, I have PlexConnect installed and working. I'd be willing to try this if you have a link to your latest code. Do you have a project on GitHub? I'd love to check it out. I might be able to assist.
Thank you for the link, I'm starting with the sagex/media api, but will probably take another version or two before I can use the straight sagex/api for direct xml access. You're welcome to grab / play with the project, if you need access let me know.

I just created an "alpha" release and will check in my active code a bit later tonight. The updated code (and screenshots) are much more like the traditional sage interface. Menus down the left; System status (dummy), Recorded Shows (grid/click to grid), Imported Media (click to menu), Media Search (click for dialog). There are some limits on what I can do per screen, and right now I'm torn between consistency and easy of use.

https://github.com/SageWizdom/SageConnect


Quote:
Originally Posted by PiX64 View Post
So I have that issue as well in the Plex Integration code. If there is no fanart stored in BMT and therfore not available via sagex, there isn't anything you can hit to say "hey give me a dummy art with show name on it" AFAIK. This is available in the phoneix UI code, but i don't believe that Sean built this into the backend.
Could you give an example of how to do it on the backend? I'm very much less than familiar with the Java api style and available options in Phoenix. Even being able to query (true/false) the existence of the file, I can query, and change the URL (and build an image generator in all my apparent free time). Right now, when a file doesn't exist, the API still returns a black square.

Any chance someone would be willing to update Phoenix to return a black square with the title in white letters if the image doesn't exist? Then rain or shine you get something...

Last edited by SageWizdom; 10-17-2013 at 04:31 PM.
Reply With Quote
  #25  
Old 10-17-2013, 07:01 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by SageWizdom View Post
Thank you for the link, I'm starting with the sagex/media api, but will probably take another version or two before I can use the straight sagex/api for direct xml access. You're welcome to grab / play with the project, if you need access let me know.

I just created an "alpha" release and will check in my active code a bit later tonight. The updated code (and screenshots) are much more like the traditional sage interface. Menus down the left; System status (dummy), Recorded Shows (grid/click to grid), Imported Media (click to menu), Media Search (click for dialog). There are some limits on what I can do per screen, and right now I'm torn between consistency and easy of use.

https://github.com/SageWizdom/SageConnect

Could you give an example of how to do it on the backend? I'm very much less than familiar with the Java api style and available options in Phoenix. Even being able to query (true/false) the existence of the file, I can query, and change the URL (and build an image generator in all my apparent free time). Right now, when a file doesn't exist, the API still returns a black square.

Any chance someone would be willing to update Phoenix to return a black square with the title in white letters if the image doesn't exist? Then rain or shine you get something...
I'll send u a code snippet tomorrow.

I'll ask Sean again if he has time to add that feature as it would be awesome for me as well with the plex code :-)...
Reply With Quote
  #26  
Old 10-17-2013, 07:11 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
hi...I don't want to be a downer, and I know nothing technically of what you are all discussing, but is there any way for Apple to upload firmware updates that could trash all the awesome things you're attempting......they have been known to be kinda dicky like that...
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #27  
Old 10-17-2013, 07:57 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Quote:
Originally Posted by tvmaster2 View Post
hi...I don't want to be a downer, and I know nothing technically of what you are all discussing, but is there any way for Apple to upload firmware updates that could trash all the awesome things you're attempting......they have been known to be kinda dicky like that...
Not a downer at all... The PlexConnect guys (and I give them really all the credit for this wonderful code) put in a check, so that when the Apple TV reaches back to Apple, it is simply told there is not an update.

Yes, ultimately that is a little less convenient if / when Apple comes out with an update. The expectation is that the AppleTV using community will slowly test, and once things are shown to continue to work, folks will either update, or install workarounds and updates. Its not perfect, but at least for my need, its a pretty good deal for a $99 dollar extender.
Reply With Quote
  #28  
Old 10-17-2013, 08:13 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240


it would be a shame to see all this good work down the drain. hopefully, as you say, Apple updates can be installed while at the same time Sageconnect countering when necessary, Since Apple is likely to fix bugs with things like Netflix, etc.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #29  
Old 10-17-2013, 08:19 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Alpha 2: Uploaded and ready

I've put the finishing checks on Alpha 2. Much better menus / UI. Working Apple Trailers, working recordings, working imported media.

https://github.com/SageWizdom/SageConnect
https://github.com/SageWizdom/SageCo...er/screenshots
* please excuse the photo quality, I couldn't get a good angle with my camera vs the TV, so there is a bit of skew

As previously noted, I use this everyday on 2 different AppleTVs around my house. Its very solid on my setup, but I don't know how other folks setups may differ.


Next Steps:
-- Autoscan and detect SageTV server (same subnet only)

-- Figure out the Sage API and parse that instead of web scrape. This would give a more SageTV like experience (ex. TV, Movies, Music, Images, etc versus now.... whatever I can pull

-- Figure out how to pull and generate SageTV Server status for main page

-- Figure out how to query fanart existence for a specific MediaFileID and if it doesn't exist, generate a place holder

-- Figure out how to compile the python code, turn it into an executable, and see if someone can help make it a downloadable Sage plugin

-- Figure out how to stream live. (create recording and link to it.... from testing, this automatically follows live.)

-- Figure out how to do comskip. The client knows where in the file it is, I need to figure out how to have the client seek..... tricky.
Reply With Quote
  #30  
Old 10-17-2013, 09:08 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
Wow, that looks great.

What happens if the ATV doesn't support the format of the video you are playing? Do you manage to hook into the sage transcoder?

How did you get the trailers app to continue working? I thought you had to redirect all DNS for trailers.apple.com to the sage connect client.

I don't think event the PlexConnect client has working trailers.

Are you using Phoenix to grab the fan art?

Last edited by Comitizer; 10-17-2013 at 09:11 PM.
Reply With Quote
  #31  
Old 10-18-2013, 07:31 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by PiX64 View Post
I'll send u a code snippet tomorrow.

I'll ask Sean again if he has time to add that feature as it would be awesome for me as well with the plex code :-)...
still need a code snippet? or are you good?
Reply With Quote
  #32  
Old 10-18-2013, 06:34 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Quote:
Originally Posted by Comitizer View Post
Do you manage to hook into the sage transcoder?
Yes.... Actually, I only know how to use the transcoder. Not knowing the API, I've been using the same URL that the mobile web interface uses. It turns out this works for all MediaFileIDs, including imported media. In theory the mobile web interface could be able to play imported media as well.

"/stream/HTTPLiveStreamingPlaylist?MediaFileId=<MediaFileID>"
"/stream/MediaFileThumbnailServlet?MediaFileId=<MediaFileID>"

Quote:
Originally Posted by Comitizer View Post
How did you get the trailers app to continue working? I thought you had to redirect all DNS for trailers.apple.com to the sage connect client.
I thought this was going to be MUCH harder than it was. It took about 2 hours last night where I basically built a proxy. If the url looks like a trailers url, I query the apple site and return the xml or images back to the ATV. It only works, right now, because when apple pulls the actual trailer video, they use a different URL, so I don't have to proxy that (Whew!). If you can figure out how to tell the PlexConnect guys, I'm happy for them to have it, I'd feel like less of a mooch given all the hard work of theirs I was able to take advantage of. Thanks to tvmaster2 for the impetus.

Quote:
Originally Posted by Comitizer View Post
Are you using Phoenix to grab the fan art?
Yes, I think, based on the /sagex/media/ API example I was able to find.

"/sagex/media/fanart?title=ShowName&artifact=poster"

Quote:
Originally Posted by PiX64 View Post
still need a code snippet? or are you good?
Yes please. I've been chewing through the API but it is literally a foreign language for me (Java). Any other suggestions / examples would be great. (ex media search; media list; media stream). I want to compile the exe into something simple to install, but onward I'd like to look into using the api directly to get access to info as it makes sense.
Reply With Quote
  #33  
Old 10-18-2013, 11:05 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
this just keeps sounding better

is the intention for this to work with ANY Apple TV, or just he newest one?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #34  
Old 10-19-2013, 06:14 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Any Apple TV will do
Reply With Quote
  #35  
Old 10-19-2013, 08:04 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #36  
Old 10-20-2013, 07:22 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Plex.JS file and how to call

Attached is the js file i use for Plex Scaner / BMT Agent you call it from a url by

http:// sage server : port /sagex/api?c=plex:GetMediaFileForName&1=<name of show you are looking for less the extenstion>
c=plex is the call to the file and then custom function i created which is GetMediaFileForName.
Attached Files
File Type: txt plex.js.txt (1.9 KB, 117 views)
Reply With Quote
  #37  
Old 10-21-2013, 06:31 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
So.... Anyone get a chance to try this?

Greetings,
I'm curious if anyone has given this a try. If yes, what did you think, what needs to be improved.

If not, why not? Is it too hard / complex to install. No AppleTV. Its missing Feature X. Not something you need just now.

Thank you for your feedback.
Reply With Quote
  #38  
Old 10-22-2013, 05:37 AM
HokiePerogi HokiePerogi is offline
Sage Advanced User
 
Join Date: Oct 2008
Posts: 187
Quote:
Originally Posted by SageWizdom View Post
Greetings,
I'm curious if anyone has given this a try. If yes, what did you think, what needs to be improved.

If not, why not? Is it too hard / complex to install. No AppleTV. Its missing Feature X. Not something you need just now.

Thank you for your feedback.
I'd love to check it out, but I'm AppleTV-less right now.
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable)
Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only)
Tuning: OpenDCT v0.5.20-RC2
Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111
Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter
Reply With Quote
  #39  
Old 10-22-2013, 09:26 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by HokiePerogi View Post
I'd love to check it out, but I'm AppleTV-less right now.
Me too. I went to PC clients now.
Reply With Quote
  #40  
Old 10-22-2013, 10:34 AM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
I'm actively following this thread with interest but I do not own a Apple TV.

Do the latest Apple TV revisions support HD Audio yet (TrueHD, DTS-MA)? My sage library has transitioned to be more bluray movies then dvr recordings.
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
Does the New Sagetv Media extender works with a Wireless extender? lfilomeno SageTV Media Extender 4 01-21-2009 03:13 PM
Media Extender HD Media Center Problems dfizer68 SageTV Media Extender 0 01-15-2009 10:36 PM
Imported Media Folders and Media Extender AtomicPenguin SageTV Media Extender 1 06-15-2008 11:16 AM
Apple Time Capsule as a Media Server? bretm Hardware Support 3 03-04-2008 04:17 PM
HD Media Extender - Exactly When ? daz19 SageTV Media Extender 46 05-23-2007 01:51 AM


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


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