Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tuxfoo

    (@tuxfoo)

    I could not find a git repo to make a PR to add support for embedding Odysee Video’s/content.

    So I will add the code here.

    
    elseif (strpos($this->post['link'], '.odysee.com/') !== false || strpos($this->post['link'], '//odysee.com/') !== false) {
    				preg_match('/.*odysee.com\/(.*):(.*)/', $this->post['link'], $matches);
                    $this->post['post_content'] = '<p><iframe id="lbry-iframe" src="https://odysee.com/$/embed/' . $matches[1] . '"/"' . $matches[2] . '" width="640" height="360" allowfullscreen></iframe></p>' . $this->post['post_excerpt'];
                }
    

    For some reason, this plugin still work’s for every channel I have tried except my own channel (Even without my modification)

    Thread Starter tuxfoo

    (@tuxfoo)

    I think there might still be some old tables in the database that trigger the post duplication check because it works on my production site. I thought I had cleaned the database.

    https://tuxfoo.nz/

    Cheers,
    Tuxfoo.

    Plugin Contributor cyberseo

    (@cyberseo)

    Hello,

    The duplication problem can be easily fixed by using server cron instead of “auto mode”. There is a bazillion threads about it right on this forum.

    As about these site-specific things. This feature is available in the Pro version. There you can use your own PHP code to process content. This feature really allows you to do just anything. No limits at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘0 posts were added’ is closed to new replies.