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: Exclude "shorts" respectively short videos not longer than x minutes/seconds #120

Closed
eatsmarter-benny opened this issue Mar 6, 2023 · 10 comments

Comments

@eatsmarter-benny
Copy link

Do you know the situation that some of your favorite channels started adding those "soul-destroying" shorts and you have to waste so many mouse clicks to selectively delete those one by one by hand?

Would be great if you could subscribe to a channel or playlist and exclude fetching "shorts" or even better videos that are shorter than a number of seconds of your choosing.

@Fabian42
Copy link
Contributor

Fabian42 commented Mar 6, 2023

The creator of this script is generally against adding too many config options, to make it not confusing for new users. But I would like this feature, too: Most of them aren't even new content, just clips of already existing content, but now in a shittier aspect ratio. I think a good solution would be to hide/collapse most of the settings columns initially, that will be kept when people copy the sheet.

@Deiwulf
Copy link

Deiwulf commented Apr 7, 2023

Was just about to suggest the same, the spam is getting out of hand.

@sk33ny
Copy link

sk33ny commented May 12, 2023

I came here to suggest this feature, I'm glad I'm not the only one.

@Fabian42
Copy link
Contributor

YouTube kind of added this feature:
image
But it isn't saved.

@victorjzsun
Copy link
Collaborator

victorjzsun commented Jan 31, 2024

I've updated the sheet and code to have a new column to remove shorts from being added. It's not the best solution and will remove any videos less than 1 minute as well. Please make a copy of the sheet again and try it out! Let me know if you encounter any issues.

@eatsmarter-benny
Copy link
Author

eatsmarter-benny commented Feb 5, 2024

I've updated the sheet and code to have a new column to remove shorts from being added. It's not the best solution and will remove any videos less than 1 minute as well. Please make a copy of the sheet again and try it out! Let me know if you encounter any issues.

Yes, thank you very much for that!
The core functionality works: Grabs all videos, filters shorts and throws them away before importing.
I am grateful and happy about that ^_^

But I found a bug with the new Google Sheets file though:
On the Debug page, the Logs in column C do not update automatically anymore.
Field C3 shows #NAME?
and the tooltip reads

Error
Unknown function: 'getLogs'.

Just clicking onto the drop-down menu in B3 on the first newest date (that is already selected) does not help but if you choose a different older date, then the function getLogs is found, gets re-triggered and runs.
After that you can choose the newest date again and the function also works with the newest date.

But if you open the sheet for the first time or reload the whole page, you run into the error state above with unknown function.

In the older sheet that never happened and the sheet always initializes the newest log with the newest date automatically.

@victorjzsun
Copy link
Collaborator

Hm, not sure about the exact cause, but played around with it; does it work now?

@eatsmarter-benny
Copy link
Author

Hm, not sure about the exact cause, but played around with it; does it work now?

No, the described behavior is still present in the Google document.

Do you have this problematic behavior? You just wrote that you "played with it" but not if you can reproduce the behavior on your end.

@davisjk
Copy link

davisjk commented Mar 31, 2024

I encountered a similar problem because I deleted the DebugData sheet and manually deleted everything below the 2nd row in the Debug sheet. It was causing the script to error out without doing anything tho, not just stop displaying logs like you're seeing. I had to re-copy the original sheet to fix my problem.

@eatsmarter-benny
Copy link
Author

It's not about a missing DebugData sheet here with me. I made a fresh copy of the newest script and filled in everything by hand again.

But good news, it must have been a "Google thing" because it now works again. When I load the page from a link, bookmark or resume the errors propagate automatically again.
Maybe Google made changes behind the curtains and rolled those out gradually and now they reached my account too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants