tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

Add keyword and duration filters for sources

Open meeb opened this issue 2 years ago • 2 comments

Allow exclusion of media on a source by keyword or by length (to not download media under a certain length).

meeb avatar Sep 04 '22 07:09 meeb

Discussed in #265

meeb avatar Sep 04 '22 07:09 meeb

Would also be good to exclude media over a certain length. One of my channels posts "marathons" which are a collection of previous videos all together. I really don't want those extra ones, especially as they are large!

timwhite avatar Jun 16 '24 13:06 timwhite

@meeb Just letting you know that I'm working on this, and at the same time doing a cleanup up all the filtering into a single unified place. From my experience, it's best to express the filtering as "if any of these match, we skip it", which makes the logic easier to follow. I hope to have a branch for testing in the next few days, assuming I can get it to build for testing.

timwhite avatar Jul 11 '24 08:07 timwhite

Note regex title filtering was added by https://github.com/meeb/tubesync/pull/425

meeb avatar Jul 11 '24 08:07 meeb

Note regex title filtering was added by #425

Yep. I need duration filters. I'm also tempted to see if I can implement the last part of #425 that was discussed, so we can easily have the regex flip to an exclusion match instead of an inclusion match. That makes it much easier to write an exclusion list than a list of negative look aheads.

timwhite avatar Jul 11 '24 09:07 timwhite

Yep all sounds fine. I was linking that just PR on the off-chance you hadn't seen it so you weren't duplicating anything. Thanks for the effort!

meeb avatar Jul 11 '24 09:07 meeb