MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / shouldProxyEmbedUrl

Function shouldProxyEmbedUrl

utils/upload.ts:1195–1202  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1193}
1194
1195function shouldProxyEmbedUrl(url: string): boolean {
1196 const ext = getUrlExtension(url)?.toLowerCase();
1197 if (!ext) {
1198 return false;
1199 }
1200
1201 return getMimeFromExtension(ext).startsWith("video/");
1202}
1203
1204function applyEmbedProxy(url: string): string {
1205 if (!settings.store.embedProxyEnabled) {

Callers 1

applyEmbedProxyFunction · 0.85

Calls 2

getUrlExtensionFunction · 0.90
getMimeFromExtensionFunction · 0.90

Tested by

no test coverage detected