If these two special cases are only necessary for youTube videos, they should go into a separate body of code and not pollute the main logic. Is it possible to detect this case and issue a demands blocks with a dedicated event handler?