filemoon added CORS

This commit is contained in:
Jorrin
2024-01-05 16:12:19 +01:00
parent d7134d4daf
commit 605b9d78d1

View File

@@ -1,7 +1,5 @@
import { unpack } from 'unpacker'; import { unpack } from 'unpacker';
import { flags } from '@/entrypoint/utils/targets';
import { SubtitleResult } from './types'; import { SubtitleResult } from './types';
import { makeEmbed } from '../../base'; import { makeEmbed } from '../../base';
import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '../../captions'; import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '../../captions';
@@ -51,7 +49,7 @@ export const fileMoonScraper = makeEmbed({
id: 'primary', id: 'primary',
type: 'hls', type: 'hls',
playlist: file[1], playlist: file[1],
flags: [flags.CORS_ALLOWED], flags: [],
captions, captions,
}, },
], ],