From d33cf9056f8f3f1caede4211e631bc0d25155456 Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Wed, 16 Oct 2024 19:22:10 +0300 Subject: [PATCH 1/3] plugins: cleanup video type --- lib/plugins/system/htmlparser/nonHtmlContentData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/system/htmlparser/nonHtmlContentData.js b/lib/plugins/system/htmlparser/nonHtmlContentData.js index efcc69793..4d7f4da9d 100644 --- a/lib/plugins/system/htmlparser/nonHtmlContentData.js +++ b/lib/plugins/system/htmlparser/nonHtmlContentData.js @@ -23,7 +23,7 @@ export default { return cb(null, { // link to original file URL to keep up with location changes (e.g. MP4) href: /video\//i.test(nonHtmlContentType) && options.redirectsHistory ? options.redirectsHistory[0] : url, - type: nonHtmlContentType.replace(/;codecs=[a-zA-Z-0-9]+/i, ''), // Clean up codes from types like "video/mp4;codecs=avc1" - example: clourdinary, + type: nonHtmlContentType.replace(/;.*$/i, ''), // Clean up codes from types like "video/mp4;codecs=avc1" - example: clourdinary, content_length: parseInt(nonHtmlContentLength, 10), rel: CONFIG.R.file // client-side iframely.js will also properly render video/mp4 and image files this way @@ -31,4 +31,4 @@ export default { } } -}; \ No newline at end of file +}; From e8722d4da54b95a01c8128190501740aa285fc5b Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Thu, 17 Oct 2024 09:39:30 -0400 Subject: [PATCH 2/3] config: add rudo.video to known video sources --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js b/config.js index 5388405d3..324fddec0 100644 --- a/config.js +++ b/config.js @@ -348,7 +348,7 @@ "iframely" ], - KNOWN_VIDEO_SOURCES: /(youtube|youtu|youtube\-nocookie|vimeo|dailymotion|theplatform|jwplatform|jwplayer|cnevids|newsinc|podbean|simplecast|libsyn|wistia|podiant|art19|kaltura|mtvnservices|brightcove|bcove|soundcloud|giphy|viddler|flowplayer|vidible|bandzoogle|podigee|smugmug|facebook|vid|ultimedia|mixcloud|vidyard|youplay|streamable|captivate|mdstrm|mediadelivery|hearstapps)\.\w+\//i, + KNOWN_VIDEO_SOURCES: /(youtube|youtu|youtube\-nocookie|vimeo|dailymotion|theplatform|jwplatform|jwplayer|cnevids|newsinc|podbean|simplecast|libsyn|wistia|podiant|art19|kaltura|mtvnservices|brightcove|bcove|soundcloud|giphy|viddler|flowplayer|vidible|bandzoogle|podigee|smugmug|facebook|vid|ultimedia|mixcloud|vidyard|youplay|streamable|captivate|mdstrm|mediadelivery|hearstapps|rudo)\.\w+\//i, OEMBED_RELS_PRIORITY: ["app", "player", "survey", "image", "reader"], OEMBED_RELS_MEDIA_PRIORITY: ["player", "survey", "image", "reader", "app"], From af4ebd43b34c0fba9611a4109f129ed11229c02b Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Tue, 22 Oct 2024 11:13:59 -0400 Subject: [PATCH 3/3] oembed: remove what is covered by oEmbed-discovery --- lib/plugins/system/oembed/providers.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/plugins/system/oembed/providers.json b/lib/plugins/system/oembed/providers.json index f8d8489f3..de3cd90c5 100644 --- a/lib/plugins/system/oembed/providers.json +++ b/lib/plugins/system/oembed/providers.json @@ -1103,13 +1103,6 @@ ], "endpoint": "https://nebula.tv/api/oembed" }, - { - "name": "SharedFile", - "templates": [ - "shared-file-kappa.vercel.app/file/*" - ], - "endpoint": "https://shared-file-kappa.vercel.app/file/api/oembed" - }, { "name": "Insight Timer", "templates": [