Update Flags for vidsrcto
This commit is contained in:
parent
053ca3fe5a
commit
5c95f64c69
|
@ -1,6 +1,8 @@
|
|||
import { load } from 'cheerio';
|
||||
import { unpack } from 'unpacker';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
|
||||
import { SubtitleResult } from './types';
|
||||
import { makeEmbed } from '../../base';
|
||||
import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '../../captions';
|
||||
|
@ -51,7 +53,7 @@ export const fileMoonScraper = makeEmbed({
|
|||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: file[1],
|
||||
flags: [],
|
||||
flags: [flags.IP_LOCKED],
|
||||
captions,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { NotFoundError } from '@/utils/errors';
|
||||
|
||||
import { makeEmbed } from '../../base';
|
||||
|
@ -28,7 +29,7 @@ export const fileMoonMp4Scraper = makeEmbed({
|
|||
url,
|
||||
},
|
||||
},
|
||||
flags: [],
|
||||
flags: [flags.IP_LOCKED],
|
||||
captions: result.stream[0].captions,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { makeEmbed } from '@/providers/base';
|
||||
import { Caption, getCaptionTypeFromUrl, labelToLanguageCode } from '@/providers/captions';
|
||||
|
||||
|
@ -53,7 +54,7 @@ export const vidplayScraper = makeEmbed({
|
|||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: source,
|
||||
flags: [],
|
||||
flags: [flags.PROXY_BLOCKED],
|
||||
headers: {
|
||||
Referer: url.origin,
|
||||
Origin: url.origin,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { load } from 'cheerio';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { SourcererEmbed, SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
|
||||
|
@ -83,6 +84,6 @@ export const vidSrcToScraper = makeSourcerer({
|
|||
name: 'VidSrcTo',
|
||||
scrapeMovie: universalScraper,
|
||||
scrapeShow: universalScraper,
|
||||
flags: [],
|
||||
flags: [flags.PROXY_BLOCKED],
|
||||
rank: 130,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue