• Gamers

    Yep correct...
    The twitter rule doesn't work...

  • Community Rep

    As history tests, I am no reg-ex expert, but I've figured out a few monkey see monkey do style, but I'm a bit flummoxed with Odysee embeds.

    This is the regex I'm using and that seems to work 馃槯

    Odysee Embeds

    Watch:

    (?:<a.*?)?(?:https?:\/\/)?(?:www\.)?odysee\.com\/@([a-zA-Z0-9_-]{1,64})([a-zA-Z0-9_-]{1,64}):([a-zA-Z0-9_-]{1,64})(?:.*?\/a>)?\/([a-zA-Z0-9_-]{1,64})([a-zA-Z0-9_-]{1,64}):([a-zA-Z0-9_-]{1,64})(?:.*?\/a>)?
    

    Therefore I believe it's the embed that's floundering. The below is not doing the do - anyone?

    Replace:

    <div class='embed-wrapper'><div class='embed-container'><iframe id="odysee-iframe" width="560" height="315" src="https://odysee.com/@$1$2:$3/$4$5:$6" allowfullscreen></iframe></div></div>
    

    ... help! 馃槻


  • for streamable link

    <div class='embed-wrapper'><div class='embed-container'><iframe src="https://streamable.com/e/$1" frameborder="0" allowfullscreen></iframe></div></div>
    
    (?:<a.?)?(?:https?://)?(?:www.)?(?:streamable.com/(?:(?:/e)?/))([a-zA-Z0-9_-]{2,12})(?:.*?/a>)?
    

  • for twitter, we can use 3rd to wrap the link in iframe then use that 3rd link, for example https://twitframe.com/:
    watch:

    (?:<a.*?)?(?:https?:\/\/)?(?:twitter\.com)\/([^\/\"\s]*)\/status\/([^\/\"\s]*)(\/photo\/\d|)(?:.*?\/a>)?
    

    replace:

    <iframe border=0 frameborder=0 width="560" height="415"src="https://twitframe.com/show?url=https://twitter.com/$1/status/$2"></iframe>4
    

  • Is there a way to embedd uploaded e.g. Powerpoint or Word files?


Suggested Topics

| | | |