From 16a6112b5b694e033415fad814e5d15e0d9b26bb Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Wed, 2 Apr 2025 02:45:04 -0500 Subject: [PATCH] new embed stuff --- inc/config.php | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/inc/config.php b/inc/config.php index b9be9991..db96b8eb 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1164,8 +1164,45 @@ '' ), array( - '/^https?:\/\/(\w+\.)?metacafe\.com\/watch\/(\d+)\/([a-zA-Z0-9_\-.]+)\/(\?[^\'"<>]+)?$/i', - '' + '/^https?:\/\/(www\.)?rumble\.com\/(?:embed\/)?([a-zA-Z0-9]+)(?:\/[a-zA-Z0-9\-]+\.html)?(?:\?[^\'"<>]*)?$/i', + '' + ), + array( + '/^https?:\/\/(www\.)?bitchute\.com\/(?:video|embed)\/([a-zA-Z0-9]+)(\/)?(\?[^\'"<>]*)?$/i', + '' + ), + array( + '/^https?:\/\/(www\.)?kick\.com\/([a-zA-Z0-9_]+)(\?[^\'"<>]*)?$/i', + '' + ), + array( + '/^https?:\/\/(www\.)?odysee\.com\/(?:\$\/embed\/)?(?:@[^:\/]+:[a-zA-Z0-9]+\/)?[a-zA-Z0-9\-]+:([a-zA-Z0-9]+)(\/)?(\?[^\'"<>]*)?$/i', + '' + ), + /* + array( + '/^https?:\/\/(www\.)?tiktok\.com\/@([a-zA-Z0-9_.]+)\/video\/([0-9]+)(\?[^\'"<>]*)?$/i', + '
' + ), + array( + '/^https?:\/\/(www\.)?instagram\.com\/(p|reel|tv)\/([a-zA-Z0-9_-]+)(\/)?(\?[^\'"<>]*)?$/i', + '
' + ), + array( + '/^https?:\/\/(www\.)?(twitter|x)\.com\/([a-zA-Z0-9_]+)\/status\/([0-9]+)(\?[^\'"<>]*)?$/i', + '
' + ), + array( + '/^https?:\/\/(www\.)?bsky\.app\/profile\/([a-zA-Z0-9_.-]+)\/post\/([a-zA-Z0-9]+)(\?[^\'"<>]*)?$/i', + '' + ),*/ + array( + '/^https?:\/\/(www\.)?bilibili\.com\/video\/(BV[a-zA-Z0-9]+|av[0-9]+)(\/)?(\?[^\'"<>]*)?$/i', + '' + ), + array( + '/^https?:\/\/(www\.)?(nicovideo\.jp\/watch|nico\.ms)\/(sm[0-9]+)(\?[^\'"<>]*)?$/i', + '' ), array( '/^https?:\/\/(\w+\.)?(vocaroo\.com\/|voca\.ro\/)([a-zA-Z0-9]{2,12})$/i',