Jump to content

Recommended Posts

Posted

You can allow single videos on a Smoothwall with a regex pattern:

 

(youtube\.com/watch\?v= [b][color=#ff0000]0MnJ0V0UFIc[/color][/b][A-Za-z_/=\?\.&]*)

 

Replace the bit in red with the ID code from the URL. All the stuff afterwards means it'll allow it even if it's got other GET variables padded behind it (like a start time). You do need to link to it directly, though. (Embedded videos are easier: just youtube.com/embed/{IDCODE} as a normal URL, no regex needed)

 

What I'd really love is a straightforward way to unblock all the videos on a given channel, but because YouTube's URLs are terrible and entirely lacking in metadata, there'll never be an easy way to do it :(

Posted
You can allow single videos on a Smoothwall with a regex pattern:

 

(youtube\.com/watch\?v= [b][color=#ff0000]0MnJ0V0UFIc[/color][/b][A-Za-z_/=\?\.&]*)

 

Replace the bit in red with the ID code from the URL. All the stuff afterwards means it'll allow it even if it's got other GET variables padded behind it (like a start time). You do need to link to it directly, though. (Embedded videos are easier: just youtube.com/embed/{IDCODE} as a normal URL, no regex needed)

 

What I'd really love is a straightforward way to unblock all the videos on a given channel, but because YouTube's URLs are terrible and entirely lacking in metadata, there'll never be an easy way to do it :(

 

Sounds like need some scripting.

 

python3 youtube-dl --get-id https://www.youtube.com/channel/UCR1IuLEqb6UEA_zQ81kwXfg/videos

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...