SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV Customizations (http://forums.sagetv.com/forums/forumdisplay.php?f=27)
-   -   How To: Add custom online video feed definitions (default STV; v6.4+) (http://forums.sagetv.com/forums/showthread.php?t=32735)

Opus4 05-12-2008 10:06 PM

How To: Add custom online video feed definitions (default STV; v6.4+)
 
1 Attachment(s)
Note: This topic covers how to add custom online video links; to discuss custom links that you've added, see: Post your Favorite Online Service Feeds!!

Support has been added to SageTV v6.4.2 and later for a simplified way to add custom online video feeds. Sample custom properties files are attached to this post.

Previously, to customize your online videos, you had to edit the default online video definition files, which would get overwritten during the next SageTV update. Now, you can leave those files alone and edit the custom online video files instead. The installer won't have copies of those custom files, so they won't get overwritten. As of v6.4.2, the custom feed definitions have been simplified compared to v6.3.10 -- feeds and their categories are defined on a single property line instead of two, and feeds can be assigned to multiple categories on that one line.

Note: You can continue to use the old v6.3.10 online video feed property format, so you don't have to update your existing custom feeds.

The attached CustomOnlineVideoLinks.zip file contains 2 files:
  • CustomOnlineVideoLinks.properties
  • CustomOnlineVideoUIText.properties.
These properties files can be added to the <install dir>\SageTV\STVs\SageTV3\OnlineVideos directory and then used to customize the online video feeds.

You will need to use the default STV from SageTV v6.4.2 or later in order to use these properties files.

See the comments near the top of the CustomOnlineVideoLinks.properties file for (hopefully) simplified instructions for adding new links. The first time you access a new link in SageTV, the titles and icon URL will be automatically created in the CustomOnlineVideoUIText.properties file, which you can edit later, if you wish. The links are listed in the UI in alphabetical order, based on the feed's property name ('FeedName').

Oh -- and the custom files can be used to modify the default set of links -- if the custom properties files contain the same properties as the default properties files, the custom setup will be used instead. Just remember, if you do this, your custom setup will still override the default definitions for every upgrade install afterwards.


Additional notes:
  1. The "Weather" and "TV Show Editorials" items on the Online Services menu are not part of the online video properties files; they are part of the STV. Weather will always be 3rd in the list & editorials will be at the end.

  2. The default online video properties files will automatically be updated when updates are available. If you really insist on disabling updating the default properties files, and thus missing any fixes that the properties file updates would take care of, you can set the online_video/update/auto_update property to false in your SageTV properties file. Please be sure to remember that you've done this if you have problems with the online feeds in the future.


Updates (Requires SageTV v6.6.2)
2009-10-07: Updated samples in attachment to include sample podcast subcategories.

2009-10-13: Updated samples in attachment to include info about using multiple custom online video properties file sets and how to format the podcast FeedURL to use a custom external application to generate the XML feed.

- Andy

qhplar 05-20-2008 06:57 AM

6.4 Online Video property file a step down
 
I looked at the new properties format for the online videos and I must say that I don't understand the change. All the podcast links are in one big heaping stack with no order and no way to make sense of it. Before if I wanted to change the order that the podcasts were displayed I could go to that section and change the order of the tag names; simple. Now it's just a mess all tags and links are mixed together with no order. If you are going to do it this way at least group the podcast categories together each in its own section.

Opus4 05-20-2008 07:18 AM

The new layout is a step up, as far as I'm concerned, becuse it is simpler & less error prone to add new links.

They don't need to be listed in any particular order in the properties file & there is no such thing as listing them by category because they can each belong to multiple categories, even though most are just in 1 category right now. In the UI, they are listed in alphabeticval order, based on the feed's property name, so the order in the proeprties file has no bearing on that. See the details above & the sample customizations files.

Do NOT customize the default files because they will be overwritten by the installer or the auto-updater. Organize your custom files any way you want.

- Andy

qhplar 05-20-2008 08:02 AM

Quote:

Originally Posted by Opus4 (Post 282563)
The new layout is a step up, as far as I'm concerned, becuse it is simpler & less error prone to add new links.

In the UI, they are listed in alphabeticval order, based on the feed's property name, so the order in the proeprties file has no bearing on that.

Do NOT customize the default files because they will be overwritten by the installer or the auto-updater. Organize your custom files any way you want.

- Andy

I agree that the new format makes it much simpler to add links but forcing alphabetical order is a poor choice. I like to put the podcasts that I watch the most on top so that I don't have to scroll through other podcasts just to get to the ones I want. Some podcasts get updated daily, weekly and monthly. I don't want to have to scroll through all the monthly podcasts just to get to my daily ones' because it falls at the end of the alphabet.

The custom file is alright as long as you use the default STV. For people who don't use the default STV it's useless.

Opus4 05-20-2008 08:16 AM

Quote:

Originally Posted by qhplar (Post 282572)
I like to put the podcasts that I watch the most on top so that I don't have to scroll through other podcasts just to get to the ones I want.

There may or may not be a different ordering method in the future, but for now, alphabetical is what it will be -- knowing that, what you can do is copy & rename the links in the custom properties file to put your favorites at front of the sorted list. I suppose you could do the same thing in the default properties files, just be aware that you have to keep backup copies with your changes.

Quote:

The custom file is alright as long as you use the default STV. For people who don't use the default STV it's useless.
If it can't use the custom properties files, then the custom STV can't use the new layout anyway. Once the code is updated for the new layout, the custom files should work too. All of that code goes together.

- Andy

qhplar 05-20-2008 08:22 AM

Quote:

Originally Posted by Opus4 (Post 282575)
There may or may not be a different ordering method in the future, but for now, alphabetical is what it will be -- knowing that, what you can do is copy & rename the links in the custom properties file to put your favorites at front of the sorted list. I suppose you could do the same thing in the default properties files, just be aware that you have to keep backup copies with your changes.

If it can't use the custom properties files, then the custom STV can't use the new layout anyway. Once the code is updated for the new layout, the custom files should work too. All of that code goes together.

- Andy

Yes I notice SageMC only shows Google and Youtube now the other catagories are blank.

Are you saying name my custom links with underscores like _Tekzilla to get it on top of the alphabetical list or does custom list always show up before the default list?

Opus4 05-20-2008 08:29 AM

Quote:

Originally Posted by qhplar (Post 282577)
Are you saying name my custom links with underscores like _Tekzilla to get it on top of the alphabetical list or does custom list always show up before the default list?

... or whatever works to put them at the front of the list.

BTW: did you notice the comment in the first post here that says the STV can still use the old property format? It still sorts the new way, though. Use whichever one you prefer, but I think the new style is better.

- Andy

qhplar 05-20-2008 08:39 AM

Understood.

I still don't like the forcing alphabetical order; it limits customizations. Hopefully more people will complain and it will be changed.


thank for your help

JREkiwi 05-30-2008 04:54 PM

Andy, thought I'd just post to say that for me, this new format certainly is a lot simpler and more logical.

The examples make everything a lot clearer without having to reference anywhere else.

Just used it to create a theme categorized TEDTalks view. Eeeasy:thumb:

John

Opus4 05-30-2008 09:13 PM

Quote:

Originally Posted by JREkiwi (Post 284440)
Andy, thought I'd just post to say that for me, this new format certainly is a lot simpler and more logical.

Yeah -- I added many new feeds over the last couple days & it goes much faster now.

Quote:

Just used it to create a theme categorized TEDTalks view. Eeeasy:thumb:
I'm curious -- are there several feeds from that source? One of the new ones I added was their HD feed, which someone posted a while back in another thread. It was added to the HD & Science/Tech categories and should be in your auto-update by now.

- Andy

JREkiwi 05-31-2008 12:27 AM

1 Attachment(s)
There's a separate feed for each theme. I've attached my custom properties.

John

JREkiwi 05-31-2008 07:06 PM

Andy, is there a way to use subcategories in the Custom definitions?

A structure like this
Online Services/Science-Tech/another category/feeds

For example, I would like to have a folder of the Theme Categorized TEDTalks inside the Science-Tech category.

I have no problem getting a custom feed to show inside the Science-Tech category, but can't see how to create a subcategory.

John

Opus4 05-31-2008 11:28 PM

I don't believe I've added any capability for such subgrouping yet -- I think it has been brought up before & would be a useful organization tool. YouTube's Top Channels goes one level deeper, but that was a special case.

- Andy

garyellis 06-30-2008 03:27 PM

Andy, help, please...

I noticed that my online links are all messed up for a couple of weeks now. But, I just finally had time to go figure out what happened. I read this thread and looked in my online folder.

I noticed that my online.properties files are getting automatically overwritten as new ones become available. ????

Is there a way to shut that off.... I took a lot of time creating online property files to have them exactly the way I wanted them, in the order I wanted them and with the titles that I wanted. With only the podcasts that I wanted. Now it seems that all of this has been overwritten and will continue to be overwritten.

Fortunately I saved back ups... Please tell me I can turn this off...

I do not want the new feeds added..I will add as I want...There are many feeds that I do not want in my online folders. There are many that I would prefer that the kids do not look at.

Please just tell me I can decide which way I want it...update or not....and I prefer not...

Thanks,

Gary Ellis

Tiki 06-30-2008 03:35 PM

Gary,

Did you read the first post in this thread? It explains how to make custom feed definitions so they don't get overwritten. It also says you can override the default feeds which will block them from getting updated automatically.

Opus4 06-30-2008 04:03 PM

If you really insist on disabling updating the default properties files, and thus missing any fixes that the properties file updates would take care of, you can set the online_video/update/auto_update property to false.

Please be sure to remember that you've done this if you have problems with the online feeds in the future. :)

- Andy

garyellis 06-30-2008 07:35 PM

Thank you, thank you, thank you...


Gary Ellis

mightyt 07-06-2008 10:16 AM

Questions?
 
First, I love having the ability to add my own feeds.

I have several questions ...

1 - Is there a way to make my Custom Online Video Feeds show up on top in Online Services?

2 - Is there a way to remove or turn off the Weather link? I don't see any reference to it in the default files. Is there a way to turn it off in a Custom override?

3 - If I create Customs files in V.6.3.10 and then move to 6.4.x when it is released, what will happen to the Customs files? Will they get upgraded?

This reminds of when Nielms Dynamic Menu first came out and I used to edit the menu file before he made it GUI driven. Would be great to see a GUI for adding and searching for Online Video Feeds in the future. And, as he added the feature to easily move menu items up/down and cut/copy/paste, that would be great here so you can custom sort things to your liking.

I also agree, it would be great if we could create sub-categories in the Custom files similar to You Tube and Google in the Default files?

That said, it is terrific being able to add your own feeds. Now, I need to find more sources for tech and TV to feed my addiction! :)

Thanks … T.

mightyt 07-09-2008 12:02 AM

Bump ... :)

Opus4 07-09-2008 03:33 PM

Quote:

Originally Posted by mightyt (Post 291339)
1 - Is there a way to make my Custom Online Video Feeds show up on top in Online Services?

Please read the documentation I've provided, both in the first post and in the downloaded sample files. As is noted in the custom properties file in the first post:
Quote:

...
# To add additional items on the Online Services menu, define the custom source
# categories here. These items will be listed after the default items on the
# Online Services menu in the order they are listed here.
#
# NOTE: Do not use the property named "Sources", unless you wish to override the
# default list of online source categories.
...
Thus, to override the default layout, you have to override the property named "Sources".


Quote:

2 - Is there a way to remove or turn off the Weather link? I don't see any reference to it in the default files. Is there a way to turn it off in a Custom override?
Weather and TV Show Editorials are not part of the online video properties files; they are part of the STV. Weather will always be 3rd in the list & editorials will be at the end. I will add this note to the first post.


Quote:

3 - If I create Customs files in V.6.3.10 and then move to 6.4.x when it is released, what will happen to the Customs files? Will they get upgraded?
Again, as noted in the first post:
Quote:

The installer won't have copies of those custom files, so they won't get overwritten.
and
Quote:

Note: You can continue to use the old v6.3.10 online video feed property format, so you don't have to update your existing custom feeds.
The whole point of the custom properties files is that the installer won't touch them.

- Andy

mikejaner 07-11-2008 12:09 AM

Quick question
I looked through the sample file, and didn't see what I was looking for.
Can you add a single camera feed, like the Leoville Twit live feed?
http://twitlive.tv/
It opens a camera feed at http://player.stickam.com/stickamPla...207768-4654009

If so, this would be nice for doing stuff like webcams on traffic etc......

Opus4 07-11-2008 12:18 AM

It needs to be a podcast feed where the video is a media item in that feed. There are no direct links to individual videos, if that is what you mean.

- Andy

mikejaner 07-11-2008 11:29 AM

Quote:

Originally Posted by Opus4 (Post 292231)
It needs to be a podcast feed where the video is a media item in that feed. There are no direct links to individual videos, if that is what you mean.

- Andy

I smell a feature request...........:)

jimmyb 07-27-2008 06:41 PM

Would like some more info here please.I see how to add feeds to the custom .ini and have the samples running. I have added some but cannot add others. This brings me to my questions.

Just what is the format to be added. I would love to add this site:
http://projectlore.com/ but everything I try fails. When I look at some sites and click on subscribe I get a lot of choices.

Do I have to see an .xml page?
Can we use ITunes feeds?
Must it be an RSS feed?
Can it be from Feed Burner or Google or some other "reader"?

When I add graphics to my weather website pages, I know how to "dig" down to find the final URL to display just that radar image or map, but I cannot "see" these with the different graphic players. I guess my question is which feeds or formats can we use with SageTV?

Thanks for listening .. longggg timeeee user :)

Opus4 07-27-2008 08:49 PM

You need to find the link to the xml podcast feed. If you know where to look on itunes, you can find the xml feed used for a feed.

I can't really say what you need to look for in an XML feed, other than that it has to contain direct links to the videos instead of links to web pages where you can view the videos.

- Andy

jimmyb 07-27-2008 09:56 PM

So once I click on a RSS feed which show the title of a video, that link must go directly to the video? So if I click on that link and it takes me to a web page with the video embeded .. no good?

EDIT: Thanks Andy, that did in fact help me identify potential feeds and I did in fact find a couple.

Brent 10-13-2008 11:16 AM

A few YouTube questions/comments here.

First off, I'm really using the online video stuff a lot more now. Combine this with the Netflix Watch Now stuff and online video is becoming a close third to TV and Movies for my viewing habits.

Along these lines I'm happy with the ability to add custom online video feeds but wondering if there is any way to add a custom YouTube channel or playlist. For example, if I want to build my playlist of YouTube videos I can do that on YouTube under my signon, but currently don't see any way of getting that specific channel into SageTV. This would make navigating the pile of YouTube videos much nicer for the HTPC in my opinion - there's so much junk in there it's really difficult to sift through to the stuff I might actually want to watch.

Also, with CBS now adding full-length TV episodes on YouTube (like Hulu does), it would be nice to at least have that channel.

Opus4 10-13-2008 12:35 PM

Quote:

Originally Posted by Brent (Post 309099)
Along these lines I'm happy with the ability to add custom online video feeds but wondering if there is any way to add a custom YouTube channel or playlist. For example, if I want to build my playlist of YouTube videos I can do that on YouTube under my signon, but currently don't see any way of getting that specific channel into SageTV. This would make navigating the pile of YouTube videos much nicer for the HTPC in my opinion - there's so much junk in there it's really difficult to sift through to the stuff I might actually want to watch.

Also, with CBS now adding full-length TV episodes on YouTube (like Hulu does), it would be nice to at least have that channel.

You can customize the existing YouTube Channels list by overriding this property in the custom props file:
xYouTubeChannels/Categories

You could also look into the _GOO, _YTV, and _YTC suffixes listed in the OnlineVideoLinks.properties file to add direct links to their feeds in other podcast categories. (Those examples don't happen to be in the sample custom files in the first post.)

And, if I recall correctly from an older topic, there is a feed for your playlist(s), but it isn't in a standard type of format that SageTV parses.

I think all or most of this was previously discussed here.

- Andy

OttoNP 11-11-2008 09:17 AM

So will these customization work with networked webcams with .sav or .asf?, I can access them with below addressing:

QuickTime or RealPlayer:
rtsp://< Camera IP Address>/img/video.sav
Windows Media Player:
http://<Camera IP Address>/img/video.asf
Mobile phone with RTSP support:
http://<Camera IP Address>/img/video.asf

so all I need to do is add this line for it to work?

xFeedPodcastCustom/NetworkWebCam=xPodcastCustom;http://<Camera IP Address>/img/video.asf

Thanks!

Opus4 11-11-2008 10:22 AM

No, you don't link directly to the videos -- the video links need to be inside a valid XML podcast feed.

- Andy

OttoNP 11-11-2008 11:26 AM

So...is there a way to get it to work?

Quazeye 01-23-2009 02:48 PM

Where do I need to look in iTunes to find the xml file for podcasts? I can't seem to find it.

Q
________
Scarabeo 500

Opus4 01-23-2009 02:56 PM

Quote:

Originally Posted by Quazeye (Post 332513)
Where do I need to look in iTunes to find the xml file for podcasts? I can't seem to find it.

One way is to subscribe to the podcast, go to your podcast subscriptions, select the ones you want to look at, then use File -> Export to export the file. That file shows the podcast URL after 'xmlUrl=' for each feed in the file.

You can also right click a feed & choose Show Description, but that only lists 1 and I don't think you can copy the URL text.

- Andy

Quazeye 01-23-2009 03:27 PM

Ok... thanks for the info.

Q
________
green crack

latino 06-04-2009 04:05 PM

hi,

can we add the new youtube service: http://www.youtube.com/xl

mcaron1234 06-05-2009 11:09 PM

I'm having trouble with the custom categories. I want to have a custom catagory called Matt's Tech. So I edited the appropriate line in CustomOnlineVideoLinks.properties like this:
Code:

CustomSources=xPodcastPhotoshop,xPodcastCustom,xPodcastMatt'sTech,
And added a custom feed like this:
Code:

xFeedPodcastCustom/MacbreakWeekly=xPodcastMatt'sTech;http://leoville.tv/podcasts/mbw.xml
But instead of getting a catagory called "Matt'sTech" I get a catagory called "xPodcastMatt'sTech".

I tried changing the custom source, feed lines like this:
Code:

CustomSources=xPodcastPhotoshop,xPodcastCustom,Matt'sTech,
Code:

xFeedPodcastCustom/MacbreakWeekly=Matt'sTech;http://leoville.tv/podcasts/mbw.xml
This configuration give me a category name of "xPodcastMatt'sTech" when I want just Matt'sTech.

Anyone spot the error I'm making?

gplasky 06-06-2009 05:13 AM

Did you follow the first post and the instructions in both text files?

Quote:

Any source or category item that has no title defined in the
# "CustomOnlineVideoUIText.properties" file will show its property name in
# SageTV.
Example in the CustomOnlineVideoUIText.properties

Quote:

Create the menu items for the Online Services menu:
# ==============================================================================

Source/xPodcastCustom/LongName=Custom Test Links
Source/xPodcastCustom/ShortName=Custom Test Links

Source/xPodcastPhotoshop/LongName=Photoshop
Source/xPodcastPhotoshop/ShortName=Photoshop

# ==============================================================================
# Create the category names & thumbnail urls for xPodcasts:
# ==============================================================================

# ==============================================================================
# Photoshop
# ==============================================================================

Category/RusselBrownShow/ThumbURL=http://rss.adobe.com/www/special/rbrown/BannerArtjpg.jpg
Category/RusselBrownShow/LongName=The Russell Brown Show
Category/RusselBrownShow/ShortName=The Russell Brown Show

Category/PhotoshopQuickTips/ThumbURL=http://libsyn.com/podcasts/photoshopquicktips/images/quicktipslarge.jpg
Category/PhotoshopQuickTips/LongName=Photoshop Quicktips
Category/PhotoshopQuickTips/ShortName=Photoshop Quicktips
Gerry

mcaron1234 06-06-2009 10:26 AM

Thanks Gerry,

For some reason I decided I didn't need to mess with the CustomOnlineVideoUIText.properties file unless I wanted to change the feed logo, etc. I've now edited appropriately and all is well.

mkstretch 08-06-2009 12:36 PM

is it possible for someone to post an example of an added link that i can use as a template, to just insert my own URL.

Opus4 08-06-2009 01:12 PM

Quote:

Originally Posted by mkstretch (Post 373339)
is it possible for someone to post an example of an added link that i can use as a template, to just insert my own URL.

There is an the example file you can download in the first post.

- Andy


All times are GMT -6. The time now is 10:36 AM.

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