YouTube livestream embeds do not embed correctly if used with share link ( https://youtube.com/live/ )

(#5120) Bug Open: Needs triage embeds

Thread

Comment by Nsgr
Nsgr OP1 vote edited
Can be fixed by adding /live/ to the paths in the youtube resolver like this:
    if path.starts_with("/live/") {
        return path
            .strip_prefix("/live/")?
            .split('/')
            .next()
            .map(|s| s.to_owned());
    }
Tested locally.