Are you sure we are doing what got others in trouble?
Plus, it needs almost weekly updates to function because Google (my guess!) intentionally breaks some API slightly, just to make this sort of thing more difficult.
The YouTube ToS clearly says players shouldn’t play audio without video (aka background audio).
Does scrapping via youtube-dl make it legal?