add flag and change rank

This commit is contained in:
lonelil
2024-04-12 01:11:29 +08:00
parent cffbc844e0
commit 089c6aa6ce
2 changed files with 4 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ async function getVideowlUrlStream(ctx: EmbedScrapeContext, decryptedId: string)
export const warezcdnembedHlsScraper = makeEmbed({ export const warezcdnembedHlsScraper = makeEmbed({
id: 'warezcdnembedhls', // WarezCDN is both a source and an embed host id: 'warezcdnembedhls', // WarezCDN is both a source and an embed host
name: 'WarezCDN HLS', name: 'WarezCDN HLS',
rank: 82, rank: 83,
async scrape(ctx) { async scrape(ctx) {
const decryptedId = await getDecryptedId(ctx); const decryptedId = await getDecryptedId(ctx);

View File

@@ -1,3 +1,4 @@
import { flags } from '@/entrypoint/utils/targets';
import { makeEmbed } from '@/providers/base'; import { makeEmbed } from '@/providers/base';
import { warezcdnWorkerProxy } from '@/providers/sources/warezcdn/common'; import { warezcdnWorkerProxy } from '@/providers/sources/warezcdn/common';
import { EmbedScrapeContext } from '@/utils/context'; import { EmbedScrapeContext } from '@/utils/context';
@@ -24,7 +25,7 @@ async function checkUrls(ctx: EmbedScrapeContext, fileId: string) {
export const warezcdnembedMp4Scraper = makeEmbed({ export const warezcdnembedMp4Scraper = makeEmbed({
id: 'warezcdnembedmp4', // WarezCDN is both a source and an embed host id: 'warezcdnembedmp4', // WarezCDN is both a source and an embed host
name: 'WarezCDN MP4', name: 'WarezCDN MP4',
rank: 83, rank: 82,
disabled: false, disabled: false,
async scrape(ctx) { async scrape(ctx) {
const decryptedId = await getDecryptedId(ctx); const decryptedId = await getDecryptedId(ctx);
@@ -49,7 +50,7 @@ export const warezcdnembedMp4Scraper = makeEmbed({
}, },
}, },
type: 'file', type: 'file',
flags: [], flags: [flags.CORS_ALLOWED],
}, },
], ],
}; };