Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Oct 22, 2024
2 parents b283750 + af4ebd4 commit 8aad6a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions lib/plugins/system/htmlparser/nonHtmlContentData.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ 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
});
}
}

};
};
7 changes: 0 additions & 7 deletions lib/plugins/system/oembed/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 8aad6a9

Please sign in to comment.