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

Auto-ignore videos to download by keyword #163

Closed
hugalafutro opened this issue Jan 27, 2022 · 5 comments
Closed

Auto-ignore videos to download by keyword #163

hugalafutro opened this issue Jan 27, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@hugalafutro
Copy link

I think it'd be cool if we could define a list of keywords to auto-ignore videos by keyword. Such as "#shorts" or "compilation". LEt me know what you think.

@bbilly1
Copy link
Member

bbilly1 commented Jan 27, 2022

I think this will only get you so far: For example the shorts, this will depend on that keyword to be in the title or somewhere, there is no category or tag or anything that gets extracted by yt-dlp to guarantee that you can actually ignore all shorts. A quick look at my feed, some channels will add it, some won't, some will have a tag, some won't.

So a text based, maybe slightly normalized to lowercase or similar, could work on the title and will catch it if it's actually there.

Thinking of it, yt-dlp should extract hash tag links, e.g. https://www.youtube.com/hashtag/shorts, that would be an effective way to then auto ignore! Or maybe a combination of both?

@hugalafutro
Copy link
Author

Yep exactly something like that, the channels I d/l use #short or #shorts hashtags, but the "Compilation" usually isn't hashtag. Compilation doesn't make sense since I already have all the vids, and many of the shorts are previews or teasers of upcoming videos which I will eventually have too.

Perhaps auto-ignoring is too much if it filters wrong video as the titles change over time (ie way back at the start of the channels there were no hashtags etc), maybe just exclude it from auto d/l?

@bbilly1
Copy link
Member

bbilly1 commented Jan 27, 2022

Well, auto dl is just a schedule that runs the same thing as when you actually click the button. But I really like the idea if yt-dlp could extract hash tags, that would be very effective and will make sure that it will actually catch what you want to. Let me look into it, if I can write an rudimentary extractor for it and then I'll see if I can raise an issue with them.

@bbilly1 bbilly1 added the enhancement New feature or request label Jan 27, 2022
@hugalafutro hugalafutro changed the title Auto-ignore videos to download by keyword (enhancement) Auto-ignore videos to download by keyword Jan 27, 2022
@bbilly1
Copy link
Member

bbilly1 commented Feb 13, 2022

I've looked a bit into how hash tags could be extracted out of the metadata of the youtube page. Sadly it's not straight forward and probably not any better than just to try to text or pattern matching on the video title.

@bbilly1
Copy link
Member

bbilly1 commented Mar 30, 2022

Thanks for the input, it's on the roadmap, closing this here to keep the list fresh.

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

No branches or pull requests

2 participants