Replies: 1 comment 1 reply
-
This is a frequently requested feature that I will add at some point. For the time being, you can use a combination of date_range and ytdl_options.max_downloads as a workaround |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is there a way to download and delete videos based on video count and not by date? For example instead of downloading the last one month of videos from a channel and deleting anything older, could one download the 5 newest videos and delete anything older?
I can think, potentially, of some logic to do this using "playlist_index" or "playlist-index-reversed". However, the only properties for deleting videos that I'm aware of are "keep_files_after" and "keep_files_before". Perhaps it is possible to take the upload date of video with index (or reverse index) 5 and feed it to the "keep_file_after" property.
Wondering if this would be the right approach to take, or does anyone have any other suggestions?
Beta Was this translation helpful? Give feedback.
All reactions