forked from leftypol/leftypol
config.php: update embedding_2
This commit is contained in:
parent
256a9682fa
commit
cd8d0e060f
1 changed files with 5 additions and 7 deletions
|
@ -1282,14 +1282,12 @@
|
|||
</div>'
|
||||
],
|
||||
[
|
||||
'match_regex' => '/^https?:\/\/(\w+\.)?tiktok\.com\/@[a-z0-9\-_]+\/video\/([0-9]+)\?.*$/i',
|
||||
'match_regex' => '/^https?:\/\/(\w+\.)?tiktok\.com\/@([a-z0-9\-_]+)\/video\/([0-9]+)\?.*$/i',
|
||||
'type' => 'oembed',
|
||||
'provider' => 'https://www.youtube.com/oembed',
|
||||
'thumb_width' => 288,
|
||||
'thumb_height' => 512,
|
||||
'html' => '<div class="tiktok-embed">
|
||||
<a href="%%embed_url%%" target="_blank" class="file">
|
||||
<img style="width:360px;height:202px;object-fit:cover" src="%%thumbnail_path%%" class="post-image"/>
|
||||
'provider_url' => 'https://www.tiktok.com/oembed',
|
||||
'html' => '<div class="tiktok-embed" data-video-author="$2" data-video-id="$3" data-iframe-width="168" data-iframe-height="300">
|
||||
<a href="https://www.tiktok.com/@$2/video/$3" target="_blank" class="file">
|
||||
<img style="width:168px;height:300px;object-fit:cover" src="%%thumbnail_path%%" class="post-image"/>
|
||||
</a>
|
||||
</div>'
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue