Closed sn-o-w closed 3 years ago
Hi!
There is no way to opt-out of this at the moment. Most RSS readers support the native YouTube feeds, e.g. https://www.youtube.com/feeds/videos.xml?channel_id=UCkIfUg5-SkgtXXLqOAjiWsA
These feeds are cleaner and might be what you are looking for. RSSBox will take you to these feeds if you use the normal submit button and not the Live item in the dropdown.
Since you are asking for a non-standard tag such as <original-title>
, it makes me think you are programmatically parsing the feed?
Yeah, I know. But YouTube's normal and default RSS is sometimes stupid and doesn't show the current livestreams a/o videos uploaded.
Using your "Live" thing for YouTube is working well, but I would like to have the original title, not an altered one. Having two tags like < original-title > and < title > would help me to choose which one I need (I use a RSS bot and I prefer the original title for the entries of the feed). Or let it be just
I created a branch for you with the change you want. https://github.com/stefansundin/rssbox/tree/cristisilaghi
diff --git a/views/youtube_feed.erb b/views/youtube_feed.erb
index f425afa..b1d0aa9 100644
--- a/views/youtube_feed.erb
+++ b/views/youtube_feed.erb
@@ -40,7 +40,7 @@
<entry>
<id>youtube:video:<%= video["id"] %><%= id_extra %><%= ":#{params[:cachebuster]}" if params[:cachebuster] %></id>
- <title><%= title.esc %></title>
+ <title><%= video["snippet"]["title"].to_line.esc %></title>
<link href="https://www.youtube.com/watch?v=<%= video["id"] %>" />
<updated><%= updated %></updated>
<author><name><%= @username.esc %></name></author>
You can create your own Heroku app that runs it if you do the following:
GOOGLE_API_KEY
field.Anyway, you can fork the repo and do whatever you want, and deploy changes to your own Heroku app.
I don't know what RSS bot you are using, but perhaps it is simpler to just have it query the YouTube API directly. It may be even easier. Basically all the code you need to look at are these lines: https://github.com/stefansundin/rssbox/blob/a2977bad4562ea1726bb899b44572564a319f534/app.rb#L237-L264
I use Discord.RSS on several Discord servers. And I can customize the feed's text message, I can choose which tags I need, what info to display.
I had a look at YT API v3, but it seems it doesn't work as RSS. And default YT's RSS is not working well. As I said earlier, YT's RSS sometimes will not publish new video/livestreams.
Hey there. Is it possible to have unaltered titles entries?
E.g., for YouTube (maybe other services too?) to have two tags like < original-title > and < title > for the entries within a feed? I don't really need the duration of a livestream and "(started)"/"(completed)". If your awesome RSSbox will show me original titles as well, that would be nice.