Help

Ability to embed YouTube or Twitch links via form submission

Topic Labels: Looking for talent
Solved
Jump to Solution
6387 5
cancel
Showing results for 
Search instead for 
Did you mean: 
Yuzer
5 - Automation Enthusiast
5 - Automation Enthusiast

Goal: A user can create a post including any version of a youtube or twitch URL. When the post is created it appears in a repeating group and the link appears as an embedded video. 

Current State: The entire site is already built using a combination of airtable and bubble.io. This is the last feature that I need. 

Work: I am open to ideas. What I know right now is that it can be done either with a Regex Formula or JavaScript Automation using the video id. 

Budget: Hopefully, under $200. But we can discuss it, based on your idea. 

1 Solution

Accepted Solutions

Roger that, here

Screenshot 2023-03-17 at 2.55.24 PM.png

And the formula used is:

IF(
  FIND(
    "twitch.tv",
    {Embed Link Examples}
  ),
  "https://clips.twitch.tv/embed?clip=",
  IF(
    OR(
      FIND(
        "youtube.com/",
        {Embed Link Examples}
      ),
      FIND(
        "youtu.be/",
        {Embed Link Examples}
      )
    ),
    "https://www.youtube.com/embed/"
  )
) & 
SUBSTITUTE(
  REGEX_EXTRACT(
    {Embed Link Examples},
    "[^/]*$"
  ),
  "watch?v=",
  ""
)

See Solution in Thread

5 Replies 5

The only way I can think of doing this involves having a list of the possible URL patterns and just hardcoding it really.  Do you have a list like that?

Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch Chicago670thescore's clip titled "670 The Score 3/14/23"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch ErikGriffinGaming's clip titled "Pete is level 450"
Watch Chicago670thescore's clip titled "670 The Score 3/14/23"
Yuzer
5 - Automation Enthusiast
5 - Automation Enthusiast

@TheTimeSavingCo  Hardcoding is what I expected, so that would work for me. Attached is a list of the email examples

Roger that, here

Screenshot 2023-03-17 at 2.55.24 PM.png

And the formula used is:

IF(
  FIND(
    "twitch.tv",
    {Embed Link Examples}
  ),
  "https://clips.twitch.tv/embed?clip=",
  IF(
    OR(
      FIND(
        "youtube.com/",
        {Embed Link Examples}
      ),
      FIND(
        "youtu.be/",
        {Embed Link Examples}
      )
    ),
    "https://www.youtube.com/embed/"
  )
) & 
SUBSTITUTE(
  REGEX_EXTRACT(
    {Embed Link Examples},
    "[^/]*$"
  ),
  "watch?v=",
  ""
)