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

download episod above 5 mins #544

Open
Yumega opened this issue Jul 9, 2023 · 6 comments
Open

download episod above 5 mins #544

Yumega opened this issue Jul 9, 2023 · 6 comments

Comments

@Yumega
Copy link

Yumega commented Jul 9, 2023

how to filter the episod only more than 5 mins?
filters = { max_duration = 360 } doesn't work

@Th0masL
Copy link
Contributor

Th0masL commented Jul 9, 2023

You are using the filter in the wrong way.

When using max_duration, it's only keeping the episodes that have a duration below the value provided.

In your case, you want to use min_duration to only keep the episodes that have a duration greater than the value provided.

@Th0masL
Copy link
Contributor

Th0masL commented Jul 9, 2023

And also, 5 minutes = 300 seconds, not 360

@Yumega
Copy link
Author

Yumega commented Jul 9, 2023

I set filters = { min_duration = 300 } at first,but I only got audios less than 5 mins

@Th0masL
Copy link
Contributor

Th0masL commented Jul 9, 2023

You can look in the log file or the output lines of podsync to confirm the behavior of the filter.

For example, for me I have a feed with the following filter :

[feeds]
  [feeds.SomeUserName]
  url = "https://www.youtube.com/user/SomeUserName" # URL address of a channel, group, user, or playlist.
  page_size = 25
  update_period = "24h"
  quality = "low"
  format = "audio"
  filters = { min_duration = 1800 }
  clean = { keep_last = 100 } # Keep last X episodes (order desc by PubDate)
  youtube_dl_args = ["--match-filter", "!is_live"]

And that's the log output :

$ cat /data/docker/podsync/podsync.log | grep "duration"
time="2023-03-21T19:52:33Z" level=info msg="skipping due to duration filter (1499s)" episode_id=XXXXX filter=min_duration

In this case, we can see that the episode got skipped because the duration of the episode is 1499 seconds, which is less than the value of 1800 configured in min_duration

@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

@mlindgren80
Copy link

mlindgren80 commented Dec 12, 2023

Do we still need to use the nightly builds? Trying to figure out what I'm doing wrong with this feed:

[feeds]
  [feeds.MYFEED] # Feed
  url = "URL"
  page_size = 3
  update_period = "60m"
  quality = "high"
  max_height = 720
  format = "video"
  filters = { not_title = "watchalong", min_duration=1200 }
  cover_art = "https://URL"
  clean = { keep_last = 10 }
  youtube_dl_args = ["--match-filter", "!is_live"]

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

4 participants