Extensions icon indicating copy to clipboard operation
Extensions copied to clipboard

[Feature] exclude youtube short vids

Open i300220 opened this issue 1 year ago • 19 comments

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.

i300220 avatar May 02 '24 17:05 i300220

Can you show an example of relevant RSS feed?

Alkarex avatar May 02 '24 17:05 Alkarex

Gladly. Short vids mixed with normal vids.

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

i300220 avatar May 02 '24 18:05 i300220

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>

Alkarex avatar May 02 '24 18:05 Alkarex

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

math-GH avatar May 02 '24 18:05 math-GH

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.

i300220 avatar May 02 '24 19:05 i300220

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

cn-tools avatar May 03 '24 06:05 cn-tools

Great :)

Let me move this ticket to the extensions repository.

math-GH avatar May 03 '24 07:05 math-GH

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.

cn-tools avatar May 06 '24 08:05 cn-tools

I tried out the extension but couldn't get it to work. But I did find the easy manual way to exclude shorts by updating the feed URL - after adding the YouTube channel feed, edit the Feed URL from:

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

to

https://www.youtube.com/feeds/videos.xml?playlist_id=UULF

Would be nice to see this as a built-in option for FreshRSS.

There are a few different playlist codes that can be used: UU for a playlist of all videos, UULF for a playlist of standard videos, UUSH for a playlist of all shorts, UULV for a playlist of all livestreams.

MisuVir avatar Mar 19 '25 23:03 MisuVir

I tried out the extension but couldn't get it to work.

Probably because there is no more public instance of Benjamin's Youtube-API. You need to install your own.

https://github.com/Benjamin-Loison/YouTube-operational-API

i300220 avatar Mar 20 '25 00:03 i300220

I tried out the extension but couldn't get it to work. But I did find the easy manual way to exclude shorts by updating the feed URL - after adding the YouTube channel feed, edit the Feed URL from:

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

to

https://www.youtube.com/feeds/videos.xml?playlist_id=UULF

Would be nice to see this as a built-in option for FreshRSS.

There are a few different playlist codes that can be used: UU for a playlist of all videos, UULF for a playlist of standard videos, UUSH for a playlist of all shorts, UULV for a playlist of all livestreams.

+1. Kindly integrate this.

kolappannathan avatar Apr 28 '25 03:04 kolappannathan

@MisuVir thank you for sharing this info, it's an awesome solution!

Thoreas avatar Jun 03 '25 17:06 Thoreas

did this ever get added?

UULF

ty for posting this!

DaaxPlays avatar Oct 14 '25 19:10 DaaxPlays

UUSH solution for only shorts is not working for me

JordanAdeoye avatar Oct 15 '25 03:10 JordanAdeoye

adding UULF to the url doesnt seem to work for me either. It breaks the urls. 404. That’s an error. The requested URL /feeds/videos.xml?channel_id=UULFchBatdUMZoMfJ3rIzgV84g was not found on this server.

DaaxPlays avatar Oct 15 '25 12:10 DaaxPlays

i think you are meant to add it to the playlist_id, but it still isnt working me

JordanAdeoye avatar Oct 15 '25 12:10 JordanAdeoye

adding UULF to the url doesnt seem to work for me either. It breaks the urls. 404. That’s an error. The requested URL /feeds/videos.xml?channel_id=UULFchBatdUMZoMfJ3rIzgV84g was not found on this server.

Make sure you're also changing "channel_id" to "playlist_id". When I make that change to your posted URL, it works fine for me.

Same with the UUSH - it returns a playlist containing only the shorts, so make sure it's playlist_id, not channel_id.

Edit to add examples:

Channel: https://www.youtube.com/feeds/videos.xml?channel_id=UCchBatdUMZoMfJ3rIzgV84g Shorts: https://youtube.com/feeds/videos.xml?playlist_id=UUSHchBatdUMZoMfJ3rIzgV84g Full Vids: https://youtube.com/feeds/videos.xml?playlist_id=UULFchBatdUMZoMfJ3rIzgV84g

MisuVir avatar Oct 15 '25 13:10 MisuVir

There are a few different playlist codes that can be used: UU for a playlist of all videos, UULF for a playlist of standard videos, UUSH for a playlist of all shorts, UULV for a playlist of all livestreams.

Thank you so much @MisuVir. Where did you find the code list? Can you share a link please?

Uhter avatar Oct 30 '25 10:10 Uhter

Unfortunately as of yesterday UULF prefixed playlists are now including shorts (e.g. https://www.youtube.com/feeds/videos.xml?playlist_id=UULF710HJmp-YgNbE5BnFBRoeg)

geraintwhite avatar Nov 07 '25 12:11 geraintwhite