Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Option to hide YouTube Shorts #2008

Closed
1 task done
chaptergy opened this issue Jan 14, 2022 · 7 comments
Closed
1 task done

[Feature Request]: Option to hide YouTube Shorts #2008

chaptergy opened this issue Jan 14, 2022 · 7 comments
Labels
E: new feature enhancement New feature or request U: duplicate This issue or pull request already exists

Comments

@chaptergy
Copy link
Contributor

Guidelines

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

This is less of a problem and more of an annoyance. When looking at the subscriptions / trending there are lots of #shorts videos which are not the content I am looking for on YouTube, and am not interested in.

Proposed Solution

An option to automatically hide all #shorts within the app, so they don't show up in subscriptions / trending / popular.

Alternatives Considered

Just not clicking on those videos I guess

Issue Labels

new feature

Additional Information

No response

@chaptergy chaptergy added the enhancement New feature or request label Jan 14, 2022
@arrowgent
Copy link

arrowgent commented Jan 18, 2022

if there is a way to identify #shorts but i dont think youtube makes any distinction of this on any api
a youtube viewer just sees it as a regular youtube video. same would occur on an invidious instance also

if the size of a video is an indicator, a 1:2 resolution such as 720x1440 would suggest a phone or short video

however all youtube preview images are forced to a 16:9 resolution, the empty space is filled by youtube's image generation.

@elesto
Copy link

elesto commented Jan 22, 2022

Maybe you could add an option where you the user could select to hide videos less than X seconds long. The user could decide what they consider a short.

Or

A combination of video size and less than a minute runtime would flag the video as a short

@chaptergy
Copy link
Contributor Author

Officially shorts have to be under 60 seconds long currently. However for subscriptions fetched via RSS I don't think duration information for the videos is available...

@PrestonN
Copy link
Member

PrestonN commented Feb 6, 2022

I'd consider this a duplicate of #1070

@BarbzYHOOL

This comment was marked as abuse.

@Flashwalker

This comment was marked as spam.

@ika-twb
Copy link

ika-twb commented Jun 13, 2023

i've never written any javascript code before, just wanted to share this quick hack that filters out video in Subscription list which are shorter than 60secs, before Developers implement the ``video title'' filter feature.

here's the patch:

From 7c21cc680dff8a1a6f2066e91afe4d5b91deaced Mon Sep 17 00:00:00 2001
From: ika <ika@thewizardbay.cc>
Date: Wed, 14 Jun 2023 01:21:21 +0800
Subject: [PATCH] quick hack for filtering out shorts

---
 src/renderer/views/Subscriptions/Subscriptions.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/renderer/views/Subscriptions/Subscriptions.js b/src/renderer/views/Subscriptions/Subscriptions.js
index c952fa66..fdc6d945 100644
--- a/src/renderer/views/Subscriptions/Subscriptions.js
+++ b/src/renderer/views/Subscriptions/Subscriptions.js
@@ -113,6 +113,11 @@ export default defineComponent({
         const subscriptionList = JSON.parse(JSON.stringify(this.profileSubscriptions))
         if (this.hideWatchedSubs) {
           this.videoList = await Promise.all(subscriptionList.videoList.filter((video) => {
+            const minutes = Math.floor(video.lengthSeconds / 60)
+            if (minutes === 0) {
+              return false
+            }
+
             const historyIndex = this.historyCache.findIndex((x) => {
               return x.videoId === video.videoId
             })
-- 
2.39.2

set up your environment according to the wiki, apply the change, run lint, run build-release and install the package.

suggestions welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: new feature enhancement New feature or request U: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

8 participants