podsync icon indicating copy to clipboard operation
podsync copied to clipboard

"min_duration" filter not working

Open 1uqtpfcn6hh8 opened this issue 2 years ago • 4 comments

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!

1uqtpfcn6hh8 avatar Mar 27 '23 12:03 1uqtpfcn6hh8

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

pmatuszy avatar Mar 30 '23 20:03 pmatuszy

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

weiyideai520 avatar Apr 06 '23 12:04 weiyideai520

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

pagdot avatar May 07 '23 09:05 pagdot

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

mmcmd avatar Oct 23 '23 02:10 mmcmd