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

"min_duration" filter not working #510

Open
1uqtpfcn6hh8 opened this issue Mar 27, 2023 · 4 comments
Open

"min_duration" filter not working #510

1uqtpfcn6hh8 opened this issue Mar 27, 2023 · 4 comments

Comments

@1uqtpfcn6hh8
Copy link

Hello!
I have a problem with the minimum duration filter (min_duration). Even if I think to have setup it correctly, it doesn't work at all.

My goal is to filter all the videos that has a duration < = 600 seconds (10 minutes), i configure it like this:

filters = { min_duration = 600 }

This is my complete configuration for reference:

[feeds]
[feeds.QUAGLIETTA]
url = "youtube.com/channel/UCM2MUPdexVVQpoqFHhwb6ow"
page_size = 5

update_period = "12h"

quality = "high" # or "low"
format = "video" # or "video"
playlist_sort = "asc" # or "desc", which will fetch playlist items from the end

filters = { min_duration = 600 }

clean = { keep_last = 20 }

max_height = 1080

Thank you!

@pmatuszy
Copy link

I think it will do exactly opposite what you want - it will keep videos of the MINIMUM length of 600s..

@weiyideai520
Copy link

I have the same problem and I hope there is a detailed document on how to filter the data.

@pagdot
Copy link
Contributor

pagdot commented May 7, 2023

it seems like min_duration is at least for youtube in ms and not s. So 10min would be 600000

@mmcmd
Copy link

mmcmd commented Oct 23, 2023

FYI for anyone having this issue in the future where the filter is not working, you are likely using an old docker images. Make sure to download the NIGHTLY version (latest won't work!):

sudo docker pull ghcr.io/mxpv/podsync:nightly

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

5 participants