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 09-23-2009, 07:04 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
PlayON UPnP to Podcast Feed - Need help

(Continuing off this thread)

So here's what i've got so far...

Code:
UPnP2Podcast.exe "UPnP Server:Nav:Nav:Nav:+Depth:(Filter)"
  • UPnP Server -The name of the UPnP server to navigate
  • Nav - Path to browse in the UPnP Media Server. These compare useing RegEx's.
  • Depth - After navigating down the path, continue searching this depth for playable files.
  • Filter (Optional) - Only add files that match this RegEx to the Podcast feed

And all it does is grab the results and generate a Podcast feed out of all the videos it finds. I wrote it in Perl and then compiled it into an .exe for windows. I could also easily compile it into an Linux executable.

Examples:
All available episodes of "The Daily Show"
Code:
UPnP2Podcast.exe "PlayOn:Hulu:TV Episodes:D:Daily Show:+2"
Netflix Queue Top 50
Code:
UPnP2Podcast.exe "PlayOn:Netflix:Instant:Top 50:+2"
Season 1 of "Lost"
Code:
UPnP2Podcast.exe "PlayOn:Hulu:TV Episodes:L:^Lost$:+2:s1"
Season 2 of "Star Trek: TOS"
Code:
UPnP2Podcast.exe "PlayOn:CBS:All TV:Star Trek:Full:+2:s02"

But right now my problem is I'm not sure/able to get this working with Sage.

My first thought is to use CGI on Jetty/Neilms webserver, which if I understand correctly, will launch the .exe when navigated via a browser and then return the output. The benefit of this is that it would work straight out of the box inside Sage's Online Services menu. Another would be that you could dynamically generate a search URL using your existing recordings (i.e. - When populating a recording list for a specific show you could also mix in the podcast feed of shows available online using Sage's built in mediaRSS library). But I'm not a web developer so I can't figure out how to get this working or even if its feasible.

My other, less desirable, idea would be to periodically (once an hour or so) update a text file with the paths/metadata for the UPnP files. Then write a little java library that would read the file and return the results as a list for easy display/playback. This has the benefit of not requiring the webserver, but it also has the negative of requiring lots of additional work :)

Edit: Or, possibly, Online Services could be made to accept commands as well as URL's.

Last edited by evilpenguin; 09-23-2009 at 08:08 PM.
Reply With Quote
  #2  
Old 09-23-2009, 09:04 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by evilpenguin View Post
Edit: Or, possibly, Online Services could be made to accept commands as well as URL's.
This looks promising. I modified Online Services to check to see if the URL is valid (starts with 'http') and if not consider the text to be the argument for UPnP2Podcast.exe, capture the output to a temp file, and then use XMLparser on that...

http://forums.sagetv.com/forums/atta...1&d=1253761102

And all of the ExecuteProcess and temp file stuff seems to be working good, the problem now is that the XML parser can't seem to find any items in my file. As far as I can tell its formated correctly, I based it off of diggnation's feed that works properly. I attached the resulting file, am I just missing something simple or is reading XML from file not working properly?
Attached Images
File Type: jpg UPnP2Podcast_Studio.jpg (144.5 KB, 617 views)
Attached Files
File Type: txt tempFeed.txt (27.9 KB, 264 views)
Reply With Quote
  #3  
Old 09-24-2009, 12:03 AM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
It doesn't look like...
Knows its supposed to be reading out of a file...
Code:
Thu 9/24 0:02:33.994 [ReProcessHook@13c007e] java.net.MalformedURLException: unknown protocol: c
Thu 9/24 0:02:34.014 [ReProcessHook@13c007e] Filename = (C:\Program Files\SageTV\SageTV\STVs\SageTV3\OnlineVideos\tempFeed.xml)
OK, enough wrestling with Studio, time for bed...

Last edited by evilpenguin; 09-24-2009 at 01:16 AM.
Reply With Quote
  #4  
Old 09-25-2009, 01:57 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
For those following along at home, I got a response from Sage on my issue...
Code:
On Fri, Sep 25, 2009 at 10:32 AM, SageTV BetaTest <betatest@sagetv.com> wrote:
Yeah, you're right about parseXmlFile....it's overridden in the core to make
it more optimized and doesn't use reflection. But you should just be able to
construct a file:// URL and then use that without any problem.
I'll give it a shot tonight.
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
Need help testing something for PlayOn evilpenguin SageTV Customizations 84 09-27-2009 05:25 PM
Playon slowww SageGk SageTV HD Theater - Media Player 11 07-17-2009 06:27 AM
PlayOn... Beginners Manual... joelinkup SageTV HD Theater - Media Player 13 04-13-2009 01:55 PM
HD Netflix Content with Playon fyodor SageTV HD Theater - Media Player 0 03-14-2009 08:04 PM
uPnP djmaxwell SageTV Software 1 03-17-2006 09:15 PM


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


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