mirror of
https://github.com/FreshRSS/Extensions.git
synced 2026-11-04 10:48:40 +00:00
Since FreshRSS stores the enclosures as entry attributes, it renders them at display time: FreshRSS_Entry::content() appends the thumbnail and each enclosure whose URL is not found in the content. The extension builds its own content from $entry->content(), which already includes the rendered enclosures, and replaces them with the video player (and, when "Display the feeds content" is enabled, its own title, thumbnail and description). None of the original URLs are part of that new content, so FreshRSS then appended the whole enclosure again below the video: the thumbnail, a 💾 link to the old Flash URL and the description, shown twice in the second case. Add hidden references to the URLs of the thumbnail and of the enclosures at the end of the generated content, so FreshRSS knows they are already handled. This is the same approach ImageProxy uses with its data-xextension-imageproxy-original-src attributes. The entry attributes are left untouched, so the list thumbnail and the enclosures exposed through the APIs do not change. Bump the extension version to 1.4.1. Fixes #290
FreshRSS - YouTube video extension
This FreshRSS extension allows you to directly watch YouTube/PeerTube videos from within subscribed channel feeds.
To use it, upload the xExtension-YouTube directory to the FreshRSS ./extensions directory on your server and enable it on the extension panel in FreshRSS.
Features
- Embeds Youtube videos directly in FreshRSS, instead of linking to the Youtube page
- Simplifies the subscription to channel URLs by automatically detecting the channels feed URL
You can simply add Youtube video subscriptions by pasting URLs like:
https://www.youtube.com/channel/UCwbjxO5qQTMkSZVueqKwxuwhttps://www.youtube.com/user/AndrewTrials
Screenshots
With FreshRSS and an original Youtube Channel feed:

With activated Youtube extension:

Changelog
1.4.1:
- Fixed the original thumbnail, description and enclosures of the feed being appended below the video
1.4.0:
- Added an option to disable embedding videos, e.g. to only use the channel icons and URL conversion
1.3.2:
- Fixed PHP warnings about HTML5 tags (such as
<figure>) when displaying the feed content
1.3.1:
- Refactored registerHook calls to use first class callable syntax
0.12:
- Turkish language support added
0.11:
- Modernized codebase for latest FreshRSS release 1.23.1
- Moved from custom repo to FreshRSS official extension repo
0.10:
- Enhance feed content formatting when included
- Enhance YouTube URL matching
0.9:
- Set the extension level at "user" (users must re-enable the extension)
- Fix calls to unset configuration variables
- Register translations when extension is disabled
0.8:
- Automatically convert channel and username URLs to feed URLs
0.7:
- Support for PeerTube feed
0.6:
- Support cookie-less domain youtube-nocookie.com for embedding
0.5:
- Opened "API" for external usage
0.4:
- Added option to display original feed content (currently Youtube inserts a download icon link to the video file)
- Fixed config loading
0.3:
- Added installation hints
0.2:
- Fixed "Use of undefined constant FreshRSS_Context"