I'm pretty sure ads will likely be different audio level or light level that would be detectable. If there is no option to detect the ad via API that would be one way to know when the ads begin and end.
I had an idea when these first AI image generators started gaining traction. Flood the CSAM market with AI generated images( good enough that you can't tell them apart.) In theory this would put the actual creators of CSAM out of business, thus saving a lot of children from the trauma.
Most people down vote the idea on their gut reaction tho.
Good thing is you could 3d print some and give them to them. If they use a compatible blower that is. Or if you're handy with modeling you could probably modify the attachment part.
Jellyfin!