woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

Feature: Skip videos over certain duration #83

Closed just-for-reporting-issues closed 3 years ago

just-for-reporting-issues commented 3 years ago

Is your feature request related to a problem? Please describe.

While we can skip livestreaming while live (fantastic) some youtubers now convert livestreams to videos after broadcast, these can last hours and be quite a sizable download (3G+).

Describe the solution you'd like

It looks like ytcc knows the duration of the video before downloading. Having an option to skip/mark videos longer than X duration in minutes would solve this.

[ytcc] 
max_duration=120
woefe commented 3 years ago

Fixed in 09b7b3d.

I was first trying to implement the max_filesize option that youtube_dl provides, but ran into issues because it's not straightforward to control the youtube_dl downloader (setup proper logging or check the download/skipped result). So, instead there is a max_duration option in the youtube_dl section of the config file now (very similar to what @just-for-reporting-issues proposed).