Jeeaaasus / youtube-dl

Automated yt-dlp Docker image
https://hub.docker.com/r/jeeaaasustest/youtube-dl/
MIT License
258 stars 33 forks source link

any way to ignore shorts and lives? #94

Closed ItsNoted closed 3 months ago

ItsNoted commented 3 months ago

How can we ignore downloading shorts and live streams? I only want to archive regular videos. Thank you!

Jeeaaasus commented 3 months ago

Hi!

Firstly, to only get videos and not any shorts, add "/videos" to the end of any channel url, like so: https://www.youtube.com/channel/UCXXYXXYXXYXX/videos

Secondly, the default configuration is skipping videos that are currently live, in order to also exclude videos that were live, I.E. a previous live-stream, you need to modify your args.conf to include a --match-filter option to deny such videos.

You are looking to specifically exclude both live and previously live videos which would be:

--match-filter '!is_live & !was_live'

However you need to be careful with the --match-filter option, as adding several of these will make them all active as "OR" filters, so I recommend only ever having one of these in your configuration at a time.