nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.52k stars 476 forks source link

Option to bypass ads in m3u8 files #221

Open RedPenguin2 opened 1 year ago

RedPenguin2 commented 1 year ago

In m3u8s like this one:

https://cdn-ue1-prod.tsv2.amagi.tv/avod/viewlift-tegna-questtvtemp/MDAR-109/MDAR-109.m3u8 (Might need US IP)

They use X-Cue-Out and X-DISCONTINUITY to "cue" you out of the video for ads and then "cue" you back on.

In this case, every single segment with ads has /ads/ as part of the segment URL.

So far, the only tool that I have found that will accomplish this, is XStreamDL-CLI but the main author of that tool has said that the project is dead and recommends this project instead.

Right now nm3u8dl-re and other tools will download a 53 minute video (10 minutes of ads) from that m3u8, instead of the expected 43 minute show.

Can an option be put on that you can do --ad-keyword /ads/ or something similar?

nilaoda commented 1 year ago

Related: #204