fix: restore dmca_content functionality
This restores (or adds) the functionality of the dmca_content config option that at this date, has been unused and makes no effect.
I prefer to leave it enabled only for the frontend, I'm not sure about the API, so tell me what do you guys (iv-org) prefer
That should be fine. That restores the original functionality of what dmca_content setting used to do. I've also added a message showing the reason why (since the setting is called dmca_content)
I think is a great idea to add an option to block the whole video and not just the download, because instance administrators that are forced to comply with DMCA, will have not have an option to block the videos directly on Invidious and instead they will need to block it at the webserver level
Seems like the configuration check was forgotten when the download widget and logic was extracted from
watch.ecrin #2922
Yep, indeed.
I don't really have any particular opinion on whether this should be restored or not, or whether the api should be affected.
I don't see why the API would be affected? This option only removes the easy download option, but it doesn't prenvent video playback.
In all cases, people making DMCA requests should be redirected to youtube, as we're not hosting any content, and thus unable to remove it from there.
@SamantazFox We leave it like this or we also disable it from the API? Every public instance already has their API disabled and is impossible to keep it enabled, otherwise it will just be abused and rate limit the instance