FreshRSS / Extensions

A repository containing all the official FreshRSS extensions
GNU Affero General Public License v3.0
320 stars 52 forks source link

[Feature] exclude youtube short vids #234

Open i300220 opened 1 month ago

i300220 commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I’m always frustrated when […]

I get the rss from several YT channels and some are shordt vids, which seems a new YT feature. I'm not interested in them less than 1 minute long.

Describe the solution you’d like A clear and concise description of what you want to happen.

I'd like not to download/list them, exclude them from download/list. I would like to ignore videos shorts like https://www.youtube.com/watch?v=NtxddL08ZOg

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

None so far. I'm puzzled at this moment.

Additional context Add any other context or screenshots about the feature request here.

Alkarex commented 1 month ago

Can you show an example of relevant RSS feed?

i300220 commented 1 month ago

Gladly. Short vids mixed with normal vids.

https://www.youtube.com/feeds/videos.xml?channel_id=UCENLojIE8uEeXAOxgtLiMlQ

Alkarex commented 1 month ago

I cannot immediately spot any information in the feed, which could help filter out the videos based on their length.

 <entry>
  <id>yt:video:NtxddL08ZOg</id>
  <yt:videoId>NtxddL08ZOg</yt:videoId>
  <yt:channelId>UCENLojIE8uEeXAOxgtLiMlQ</yt:channelId>
  <title>My emotions are all in this song ✨ #beatriceflorea #cover #clown #emelisandé</title>
  <link rel="alternate" href="https://www.youtube.com/watch?v=NtxddL08ZOg"/>
  <author>
   <name>Beatrice Florea - Singer</name>
   <uri>https://www.youtube.com/channel/UCENLojIE8uEeXAOxgtLiMlQ</uri>
  </author>
  <published>2024-05-02T17:01:17+00:00</published>
  <updated>2024-05-02T17:08:24+00:00</updated>
  <media:group>
   <media:title>My emotions are all in this song ✨ #beatriceflorea #cover #clown #emelisandé</media:title>
   <media:content url="https://www.youtube.com/v/NtxddL08ZOg?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
   <media:thumbnail url="https://i3.ytimg.com/vi/NtxddL08ZOg/hqdefault.jpg" width="480" height="360"/>
   <media:description></media:description>
   <media:community>
    <media:starRating count="98" average="5.00" min="1" max="5"/>
    <media:statistics views="120"/>
   </media:community>
  </media:group>
 </entry>
math-GH commented 1 month ago

I have the same issue, that I would like to have it filtered out.

But I cannot find any information in the RSS feed, that could help here.

Only an extension could help that fetches the page and checks out the ytp-time-duration

grafik

i300220 commented 1 month ago

Yeah, https://www.youtube.com/@BeatriceFloreaSinger/videos and https://www.youtube.com/@BeatriceFloreaSinger/shorts share the same rss feed. Annoying... Half are shorts

Will sleep on that, I guess.

cn-tools commented 1 month ago

I'm working on an solution about this wish based on https://github.com/Benjamin-Loison/YouTube-operational-API It will be integrated into my extension xExtension-YouTubeChannel2RssFeed

Have a look at CNTools#8

math-GH commented 1 month ago

Great :)

Let me move this ticket to the extensions repository.

cn-tools commented 1 month ago

A few seconds ago i checked in a alpha version of xExtension-YouTubeChannel2RssFeed to detect youtube shorts.

Please test it and i'm happy to read your feedback.