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
  #1  
Old 05-25-2015, 09:42 AM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
YouTube RSS Feeds

Since I don't know the first thing about modifying SageTV with Studio, I thought I'd work around the YouTube RSS feed changes outside of SageTV. I've setup a web site where you provide the YouTube URL of the user/channel/playlist you want and the site will return a SageTV-compatible RSS feed.

If you want to try it out, change the URLContext line in your CustomOnlineVideoLinks.properties file to this format:

Code:
URLContext=http://stv-yt2rss.pw/?url=<YouTube URL>
Where "<YouTube URL>" is the YouTube URL to the user/channel's video or playlist link. You can get this link by clicking on the "Videos" or "Playlists" link from the YouTube user/channel page.

For example, Hak5's main YouTube page is "https://www.youtube.com/user/Hak5Darren". Clicking on the "Videos" link gives this URL "https://www.youtube.com/user/Hak5Darren/videos". To get this RSS feed, you would then modify your URLContext line to read:

Code:
URLContext=http://stv-yt2rss.pw/?url=https://www.youtube.com/user/Hak5Darren/videos
Similarly, if you only wanted the Threat Wire playlist from the Hak5 channel, you would click on the "Playlists" link from the Hak5 main page, click on the "View full playlist" link under the Threat Wire playlist and use the resulting URL in your URLContext line:

Code:
URLContext=http://stv-yt2rss.pw/?url=https://www.youtube.com/playlist?list=PLW5y1tjAOzI0Sx4UU2fncEwQ9BQLr5Vlu
I only just got this setup, so there may still be some bugs with it. Hope the community finds this useful until a real developer can fix YouTube in SageTV!
Reply With Quote
  #2  
Old 05-26-2015, 07:48 AM
Rob23 Rob23 is offline
Sage Advanced User
 
Join Date: Feb 2009
Posts: 101
Thank you Boolah. This sounds like a good potential solution to lates API. I plan to try it this week. I appreciate your efforts on this front.
Reply With Quote
  #3  
Old 05-30-2015, 09:08 AM
MrE MrE is offline
Sage User
 
Join Date: Mar 2006
Posts: 28
Wow! It works great! I can get my TekThing and ScreenJunkies youtube channels again.


Question: Are the video publish dates showing in a different language for anyone else?

Last edited by MrE; 05-30-2015 at 10:51 AM.
Reply With Quote
  #4  
Old 05-30-2015, 11:34 AM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
Can you provide a URL to a channel that's showing the publish dates in a different language (and a screenshot from Sage might be helpful too)?
Reply With Quote
  #5  
Old 05-30-2015, 09:10 PM
MrE MrE is offline
Sage User
 
Join Date: Mar 2006
Posts: 28
Tekthing:
Code:
http://stv-yt2rss.pw/?url=https://www.youtube.com/channel/UC6sWaC11f4mxnizvOroOvkQ/videos
Movie Clips Trailers:
Code:
http://stv-yt2rss.pw/?url=https://www.youtube.com/MovieclipsTrailers/videos
If I look at the source code of the RSS pages generated by the above url's, the "<pubdate>" tags are a different language.

SageTV screenshots attached.
Attached Images
File Type: jpg TekThing.jpg (291.0 KB, 244 views)
File Type: jpg MovieClipsTrailers.jpg (298.1 KB, 240 views)

Last edited by MrE; 05-30-2015 at 09:15 PM.
Reply With Quote
  #6  
Old 05-31-2015, 04:31 AM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
Thanks for the screenshots and URLs. This was caused by an unset language variable, which should now be fixed. If anyone finds any other strange happenings, please let me know.
Reply With Quote
  #7  
Old 06-07-2015, 04:42 PM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
YouTube searches should work using this method now too. To get searches working from SageTV, edit the OnlineVideoLinks.properties file. Search for a line which looks like this:

Code:
xYouTube/URLPrefix=http://gdata.youtube.com/feeds/api/
and replace it with this:

Code:
xYouTube/URLPrefix=http://stv-yt2rss.pw/
Further down the same file, search for two lines which look like this:

Code:
xSearchYouTubeTags/URLSearchPrefix=videos?q=
xSearchYouTubeTags/URLSearchPostfix=&client=ytapi-youtube-search&v=2&alt=rss&max-results=20
and replace them with this:

Code:
xSearchYouTubeTags/URLSearchPrefix=?url=
xSearchYouTubeTags/URLSearchPostfix=
Save the file and YouTube searching should work from Sage again!

Last edited by Boolah; 06-07-2015 at 05:04 PM.
Reply With Quote
  #8  
Old 06-08-2015, 10:41 AM
wubdich's Avatar
wubdich wubdich is offline
Sage Advanced User
 
Join Date: Sep 2009
Location: Germany
Posts: 235
Everything is working great - thank you very much !
Reply With Quote
  #9  
Old 06-11-2015, 05:54 PM
EdwardATeller EdwardATeller is offline
Sage Advanced User
 
Join Date: Oct 2007
Posts: 212
Followed the directions from the post two up from here, and when I search for a YouTube video, nothing comes up. I think I'm missing something very basic.
__________________
STV 9.1.5.683 / Vista Premium / Compaq Presario SR-5550F / AMD Athlon 64 X2 5400 / nvidia GeForce 8400GS / 3 GB DDR2 / 500 GB SATA / 1 TB SATA / M2N68-LA Motherboard / Hauppauge HVR-1250 / Hauppauge HVR-1600 / 2 x STX-HD100 / OTA / Channel Master FLATenna 35
Reply With Quote
  #10  
Old 06-12-2015, 06:03 AM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
If when you search for something, you get no result at all, then the search is not even reaching my site. This means that something is wrong with this line:

Code:
xYouTube/URLPrefix=http://stv-yt2rss.pw/
Note the domain is a ".pw" and not a ".com" and ends with a "/".

On the other hand, if you're only getting a single entry with a 404 image and the text which reads "Malformed or missing URL/search terms provided", then there is either something wrong with this line:

Code:
xSearchYouTubeTags/URLSearchPrefix=?url=
or there's a bug which I need to track down (make sure you have a tailing "=" at the end of this line). Check those two lines again and make sure you're editing your OnlineVideoLinks.properties file and not your CustomOnlineVideoLinks.properties file. (The former file is for YouTube searches, while the latter is for YouTube channels.) Also, the "Most Viewed", "Top Rated", "Top Favorites", etc. will not work as those feeds don't exist with YouTube's v3 API.

If you're still having problems, PM me your IP address and I'll search the server logs to see if you're even hitting the site.

Last edited by Boolah; 06-12-2015 at 06:18 AM.
Reply With Quote
  #11  
Old 06-18-2015, 03:42 PM
Boolah's Avatar
Boolah Boolah is offline
Sage Advanced User
 
Join Date: May 2004
Posts: 133
As of today, this fix no longer works. For details, please see this post. If anything changes, I'll update this thread.
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
Custom Youtube Feeds Problems jonnydeath SageTV Customizations 1 10-29-2009 09:18 PM
Youtube Rss Feeds in Online Services derpderpy SageTV Software 2 03-25-2009 10:39 AM
RSS feeds SageGk SageMC Custom Interface 1 12-11-2008 10:36 PM
HD200 and RSS feeds from WHS dravenone SageTV Media Extender 0 12-05-2008 11:56 AM
Removing RSS feeds jaminben SageMC Custom Interface 0 07-18-2008 06:49 AM


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


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