[x] I've verified that I'm running youtube-dl version 2021.02.10
[x] I've searched the bugtracker for similar feature requests including closed ones
Description
I came across several sites I downloaded some videos from, where the first segment in the playlist (m3u8) is advertising, age restriction or copyright warning.
rtuk_6_360.ts contains the age restriction warning that shows in the beginning of the video, that I want to exclude and download only the main movie. It is even encoded with different parameters than the rest of the video.
My proposal is for option to filter out such unwanted segments from a m3u8 or dash playlist (just like individual videos can be skipped from ordinary playlist with --playlist-start, --playlist-end and --playlist-items options). e.g. something in this manner:
--segment-start, --segment-end, --segment-items
Note my request for this feauture is as general option and not for these specific sites only as I think it will be more flexible if it can be used with the generic extractor as well.
Checklist
Description
I came across several sites I downloaded some videos from, where the first segment in the playlist (m3u8) is advertising, age restriction or copyright warning.
example: https://puhutv.com/cukur-115-bolum-izle or any other video from the site
1) download the video (lowest quality just for the test):
2) copy & paste in the browser the m3u8 link from the ytdl output to download and inspect the playlist :
rtuk_6_360.ts contains the age restriction warning that shows in the beginning of the video, that I want to exclude and download only the main movie. It is even encoded with different parameters than the rest of the video.
My proposal is for option to filter out such unwanted segments from a m3u8 or dash playlist (just like individual videos can be skipped from ordinary playlist with --playlist-start, --playlist-end and --playlist-items options). e.g. something in this manner:
--segment-start, --segment-end, --segment-items
Note my request for this feauture is as general option and not for these specific sites only as I think it will be more flexible if it can be used with the generic extractor as well.