SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2009, 10:19 AM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
HuLu/Netflix Queue as RSS Feed - Alpha release

UPDATED: 09/28/09 @ 7:05AM PST

Please use the method listed in this thread: http://forums.sagetv.com/forums/showthread.php?t=44446




This is in it's alpha stage so there may be many changes as it evolves.

I have created a batch file and some VBscripts script that will take advantage of EvilPenguin's (upnp2podcast.exe) app. These files allow users to run a single file that will bring in the hulu and netflix users queues through PlayOn and turn them into rss feeds that they can add to SageTV and view the videos directly within the UI (server, client, extenders (HD100 and HD200) and placeshifter (even outside your network)).

Files located here: Expired Link

Instructions:
1.) Requires PlayOn version 2.59.3555 to be installed.
2.) Download the zip file and copy the enclosed "Playonsage" folder to your C:\ drive.
3.) Edit vbscripts (hulu and netflix) so that you replace "192.168.1.2" with your own servers IP address. I think these are only required for Windows 7 (not sure about Vista) users. If you are using XP, you likely do not need these vbscripts as it sets the right IP address (or so I have read). You can simply omit them from the "run.bat" file by editing it (edit out lines 3 and 6).
4.) I am currently using xampplite web server, so the vbscripts and run.bat file are set up to work with that. If you are using a different web server or your htdocs folder is in a different location, you will need to edit these files to your htdocs location.
5.) Running the run.bat file: I used windows task manager to execute this file every hour just to be safe. In addition I placed a shortcut to the file in my startup folder so that if I reboot, it will run the run.bat file automatically. You will need to run the run.bat file after every reboot and likely a few times a day at a minimum (not sure how often PlayOn updates their video links).

Running .bat file invisibly: If you are creating a task to run the run.bat file every few hours, you may not want to have the window pop up on your screen when it runs. Simply add "/c" argument when you set up the task and it will run invisibly. Example: c:\playonsage\run.bat /c


Note: Netflix may hang the first time you try to watch a movie and there are reports of audio sync issues (this is a PlayOn problem).

Last edited by simonen; 09-29-2009 at 02:59 PM.
  #2  
Old 09-24-2009, 10:23 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
can't wait to try this tonight. thanks to you and EP for working on this.

Matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
  #3  
Old 09-24-2009, 11:12 AM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
Signed up for Netflix and it works after a minor update to the files. New ones are posted.

One annoying thing that I have noticed is that sometimes the hulu video will drop out as soon as it starts playing, but if you play it again, it is fine. Similar with netflix, it might hang in the buffering stage, but if you stop it and play it again, it is fine.
  #4  
Old 09-24-2009, 11:45 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Curious to know if your PHP files will run in the SageTV Jetty plugin using: http://docs.codehaus.org/display/JETTY/Jetty+and+PHP

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
  #5  
Old 09-24-2009, 12:14 PM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
Is PlayOn software needed? If yes, then maybe you should mention it in the instructions.
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.
  #6  
Old 09-24-2009, 12:25 PM
disco340 disco340 is offline
Sage User
 
Join Date: Jan 2009
Posts: 60
Is there anything special that needs to be done on setting up XAMPP? Or is it as simple as just installing? I'm not sure what needs to be configured if any.
  #7  
Old 09-24-2009, 01:09 PM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Sweet.

Will this work with SageMC? I think it should because I have a vague recollection of SageMC calling the default STV for the online video/RSS feeds but I'm not sure.
  #8  
Old 09-24-2009, 01:11 PM
Zippster's Avatar
Zippster Zippster is offline
Sage Aficionado
 
Join Date: Jun 2008
Location: Buffalo NY
Posts: 314
Got it up and running on my HD100

Couple issues I am having, when I first load the show it does the Hulu thing as you described and closes, I reload and the show is there but only say 15 seconds or so then closes again, reload and more is there...rinse and repeat.

FF works but the Sage skip and skip2 reverts back to opening brought to you by Hulu.

@Disco, I simply followed the XAMPP on screen directions and up and working, no problems.


Great work, I have been waiting for this for along time.
  #9  
Old 09-24-2009, 01:17 PM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
Zippster, I am assuming this might be sage running into the end of the buffer too quickly (maybe transcoding speed or bandwidth). Try starting the show and pause it for a few seconds and see what happens before continuing.

I don't know enough about this, but maybe there is some kind of switch that can be specified at the end of the link to tell sage to buffer longer or something. Shot in the dark...I assume it likely doesn't work that way though.

Last edited by simonen; 09-24-2009 at 01:22 PM.
  #10  
Old 09-24-2009, 01:22 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Unless you're figuring them out on your own, UPnP.exe isn't grabbing the size/length information for the files. But that's been fixed in UPnP2Podcast.exe. Without those Sage cant' configure the timebar correctly which leads to ffwd/rwd weirdness.
  #11  
Old 09-24-2009, 01:28 PM
disco340 disco340 is offline
Sage User
 
Join Date: Jan 2009
Posts: 60
Could somebody give me an example of what the online feed entries are supposed to look like? I would assume I'm supposed to edit both the "CustomOnlineVideoUIText.properties" file and the "CustomOnlineVideoLinks.properties" file. I've never added my own online link so I'm a bit confused on how it's supposed to look. Thanks in advance.
  #12  
Old 09-24-2009, 01:36 PM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
You are right. I have not gotten to that yet. I tried running the new app you uploaded, and I must say this is a much nicer way to go. definitely reduces a lot of steps than what I have.

I am not getting the correct duration for the video files with upnp2podcast.exe, it gives me random times and is different each time I play the video.

Also, maybe you have already thought of this, but the localhost needs to be replaced with the network IP or else the extenders won't work with it.

Last edited by simonen; 09-24-2009 at 01:39 PM.
  #13  
Old 09-24-2009, 01:41 PM
Zippster's Avatar
Zippster Zippster is offline
Sage Aficionado
 
Join Date: Jun 2008
Location: Buffalo NY
Posts: 314
Quote:
Originally Posted by disco340 View Post
Could somebody give me an example of what the online feed entries are supposed to look like? I would assume I'm supposed to edit both the "CustomOnlineVideoUIText.properties" file and the "CustomOnlineVideoLinks.properties" file. I've never added my own online link so I'm a bit confused on how it's supposed to look. Thanks in advance.
Sticky at the top of this section.

http://forums.sagetv.com/forums/showthread.php?t=32735
  #14  
Old 09-24-2009, 01:52 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Hmm, the durations in the RSS files are constant, so then I guess we need to figure out where Sage is figuring out the duration of the video.

Code:
    <item>
      <title>Amok Time</title>
      <description>Season 02 Episode 01 - Spock undergoes the Vulcan mating ceremony</description>
      <pubDate></pubDate>
      <itunes:subtitle>Season 02 Episode 01 - Spock undergoes the Vulcan mating ceremony</itunes:subtitle>
      <itunes:duration>0:50:30.0</itunes:duration>
      <enclosure url="http://10.0.1.2:63478/cbs-dddd24cc-efd2-4a36-882e-9fb8891dd1c0/1-cbs-dddd24cc-efd2-4a36-882e-9fb8891dd1c0.mpg" length="
    </item>
I actually have a lot of questions for Sage about what tags they are using and how to best format the RSS file for maximum compatibility. To many guess's right now.
  #15  
Old 09-24-2009, 02:55 PM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
It looks like the video dropping out is definitely the source of the duration issue. Whenever it says the video is 0:00 long, it immediately quits. If it says that it is 45 seconds long, it quits after 45 seconds. So either the duration tags are not being used correctly or sage is ignoring them for some reason.

I looked at the NBC nightly news feed and they do not use any leading or trailing zeros in their itunes.duration. I will edit the rss file produced from upnp2podcast and see what effect that has. Another shot in the dark...

Last edited by simonen; 09-24-2009 at 02:58 PM.
  #16  
Old 09-24-2009, 03:16 PM
disco340 disco340 is offline
Sage User
 
Join Date: Jan 2009
Posts: 60
Quote:
Originally Posted by simonen View Post
It looks like the video dropping out is definitely the source of the duration issue. Whenever it says the video is 0:00 long, it immediately quits. If it says that it is 45 seconds long, it quits after 45 seconds. So either the duration tags are not being used correctly or sage is ignoring them for some reason.

I looked at the NBC nightly news feed and they do not use any leading or trailing zeros in their itunes.duration. I will edit the rss file produced from upnp2podcast and see what effect that has. Another shot in the dark...
Not sure if you noticed this or not. When you first play the video, like you said it will imediately drop. If you wait about a minute and play the same video the time code increases, wait another minute and it increases even more. Could this be because of the way Playon proccess the video? I remeber at one time or another that playon would continue to process the whole video until done regardless if you watch the whole thing or not.
  #17  
Old 09-24-2009, 03:29 PM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
I just edited the rss file to remove the leading and trailing zeros from the itunes.duration and it showed the correct duration right from the first time I tried to play the video and it didn't drop out.
  #18  
Old 09-24-2009, 03:35 PM
Zippster's Avatar
Zippster Zippster is offline
Sage Aficionado
 
Join Date: Jun 2008
Location: Buffalo NY
Posts: 314
Quote:
Originally Posted by simonen View Post
I just edited the rss file to remove the leading and trailing zeros from the itunes.duration and it showed the correct duration right from the first time I tried to play the video and it didn't drop out.
Sounds like progress.

I was just going to post more of my observations, my player always starts paused. I had the same short time issues as posted, but now it shows all zeros and no time at all. ( videos play, just never get a time )

One other thing, I think the updates from Hulu may have to be quite often as it was only about 30 minutes since I ran the bat file before my extender wasnt finding them and had to manually run it again.
  #19  
Old 09-24-2009, 03:40 PM
simonen simonen is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 384
Did you restart playon or your server? I think that it is playon that is mixing them up, not hulu.
  #20  
Old 09-24-2009, 03:40 PM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
I've never looked into PlayOn before, and admittedly have not followed the "quest for hulu" here much, but this has my interest piqued.

I checked out the PlayOn site and saw this quote:
Quote:
PlayOn lets you watch Netflix, Hulu, CBS, YouTube, CNN, ESPN and more on your TV
Does this mean that this plug-in opens the door (potentially) to getting CBS, CNN, ESPN, etc., streaming web video as well as the aforementioned hulu and netflix?
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.
Closed Thread


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
RSS FEed Lost85 SageMC Custom Interface 1 07-18-2009 01:18 AM
Looking for News and Sports feed for RSS ticker SageGk SageMC Custom Interface 1 04-06-2008 07:56 AM
Web Plugin RSS feed question matt91 SageTV Customizations 1 07-28-2006 11:24 AM
RSS feed for the forums dflachbart General Discussion 4 03-31-2006 11:39 PM


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


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