parnexcodes/widevine-L3-WEB-DL-Script

Bypass Ad on MPD?

RedPenguin2 opened this issue · 2 comments

For some reason HBO Max seems to put a pre-roll ad on some shows like this one.

"https://manifests.v2.api.hbo.com/dash.mpd?f.audioLanguage=en-US&f.audioLanguage=es-419&f.audioLanguage=pt-BR&f.textLanguage=en-US&f.textLanguage=es-419&f.textLanguage=pt-BR&r.duration=16.016001&r.duration=1395.435669&r.host=https%3A%2F%2Fcmaf.akm.us.hbomaxcdn.com&r.keymod=1&r.main=1&r.manifest=videos%2FGYXhBiAXE2J3DeQEAAAKJ%2F0%2F36d04f%2F0_INcDtQ_1080hi.mpd&r.manifest=videos%2FGXdXigww3QZuAuwEAABQ6%2F6%2Fb556d6%2F6_single_InIEFg_1080hi.mpd&r.origin=cmaf"

No matter what I try and specify, it tries to download only a 10MB video even though the show is to be around 900MB.

It downloads the correct audio tough.

Other shows work perfectly except these ones which oddly advertise some other show before they play.

remove the first manifest for example
https://manifests.v2.api.hbo.com/dash.mpd?f.audioLanguage=en-US&f.audioLanguage=es-419&f.audioLanguage=pt-BR&f.textLanguage=en-US&f.textLanguage=es-419&f.textLanguage=pt-BR&r.duration=16.016001&r.duration=1395.435669&r.host=https://cmaf.akm.us.hbomaxcdn.com&r.keymod=1&r.main=1&r.manifest=videos/GYXhBiAXE2J3DeQEAAAKJ/0/36d04f/0_INcDtQ_1080hi.mpd&r.manifest=videos/GXdXigww3QZuAuwEAABQ6/6/b556d6/6_single_InIEFg_1080hi.mpd&r.origin=cmaf
highlighted part is the ad so you just have to remove it

remove the first manifest for example https://manifests.v2.api.hbo.com/dash.mpd?f.audioLanguage=en-US&f.audioLanguage=es-419&f.audioLanguage=pt-BR&f.textLanguage=en-US&f.textLanguage=es-419&f.textLanguage=pt-BR&r.duration=16.016001&r.duration=1395.435669&r.host=https://cmaf.akm.us.hbomaxcdn.com&r.keymod=1&r.main=1&r.manifest=videos/GYXhBiAXE2J3DeQEAAAKJ/0/36d04f/0_INcDtQ_1080hi.mpd&r.manifest=videos/GXdXigww3QZuAuwEAABQ6/6/b556d6/6_single_InIEFg_1080hi.mpd&r.origin=cmaf highlighted part is the ad so you just have to remove it

TY!

I feel silly not seeing that in the url. It looks so obvious now... lol