FreshRSS / FreshRSS

A free, self-hostable news aggregator…
https://freshrss.org
GNU Affero General Public License v3.0
8.64k stars 771 forks source link

[Bug] Youtube channel feeds can't be filtered based on article contents #6430

Open glottisfaun0000 opened 3 weeks ago

glottisfaun0000 commented 3 weeks ago

Describe the bug

When trying to filter Youtube XML feeds, I noticed that search filters weren't applying to content in the video description which is part of the article contents. Not sure if this is an issue with how Youtube delivers the feeds or how the HTML is parsed by FreshRSS. I notice in inspector that the descriptions are <figcaption>s and the text is all in italics. Should be easy to reproduce.

To Reproduce

  1. Add a Youtube channel XML feed to FreshRSS (example: https://www.youtube.com/feeds/videos.xml?channel_id=UC1LpsuAUaKoMzzJSEt5WImw )
  2. Select the feed and enter a keyword that reflects something present in a video description which shows up as article contents (for example, in the feed above, every description has the word "Patreon")
  3. FreshRSS shows no results

Expected behavior

No response

FreshRSS version

1.23.1

Environment information

Additional context

No response

math-GH commented 3 weeks ago

it is not a bug, it is a feature. but it should be improved ;)

The description in youtube feeds is part of the enclosures. The text of enclosures is not searched by the filters yet

Alkarex commented 3 weeks ago

The text of enclosures is not searched by the filters yet

We could add a new search operator to search in enclosures.

Actually, we used to have enclosures as part of the body, but not anymore.

glottisfaun0000 commented 3 weeks ago

We could add a new search operator to search in enclosures.

That sounds good - just to offer another approach to this issue as food for thought, I encountered it when trying to set up filters in the "Mark an article as read..." section, so a toggle there could work too.