TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
62 stars 29 forks source link

Provide an option to restrict a YouTube video on site side. #1700

Closed Spikestuff closed 4 days ago

Spikestuff commented 11 months ago

YouTube has an option to allow age restriction. image

How about a checkbox on the site side to mark it and allow it to transform the video from being All Ages, to Requiring an Account? image (And the equivalent on the Submission being Published.)

And a new tab on the EditUrls to state whether the checkbox has been enabled or not. image

Masterjun3 commented 11 months ago

It'd probably be helpful to make a list (on the wiki or here) of all publications where we currently need this.

Spikestuff commented 8 months ago

It'd probably be helpful to make a list (on the wiki or here) of all publications where we currently need this.

Start with the one that was Published recently: https://tasvideos.org/5756M Which got ahead of the curve from the submission this issue request was initially based on: https://tasvideos.org/8603S

vadosnaprimer commented 8 months ago

I think it would be better to mark the entire publication as restricted, and then extrapolate that to all encodes automatically. I don't think there would be encodes that are perfectly fine if the entire pub requires a restriction.

adelikat commented 8 months ago

is this specifically age restriction?

vadosnaprimer commented 8 months ago

For youtube yes (for cases when someone watches on YT directly). But for watching from the site we'd need some more restrictions, and I'm not sure if we can technically check age, other than by asking very strongly. Some more context is in this post https://tasvideos.org/Forum/Posts/525903

vadosnaprimer commented 6 days ago

Looks like we need this first and foremost before the other issue, because it kinda covers both. If the warning is on youtube, people trying to watch it from the site will also see it and have to agree to watch it. While it only solves age restriction, it's the most urgent one, and can be done with just one extra flag on publications, with no banners on the site.

vadosnaprimer commented 4 days ago

Looks like the flag on actual videos is going to be manual-only https://issuetracker.google.com/issues/243110160?pli=1

We'd have a site flag to reflect when it's set for the video, and that's it.

vadosnaprimer commented 4 days ago

So since we can't use youtube API to set age restriction (they explicitly disable it), and it'd have to be manual, I created the content warning pub flag that can serve the purpose of indicating when age restriction needs to be set on a video (on youtube directly).

Warning will also need to be textual in pub description.

How exactly we use this warning is up for debate. For example we may use it for all kinds of warnings with textual explanations of what type they are. And later the site will have some UI to show and hide them.