Enabled febbox subtitles

This commit is contained in:
mrjvs 2024-01-17 18:18:08 +01:00
parent 528e2774b5
commit 327ba025c2
2 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,10 @@
import { describe, expect, it } from "vitest";
import { testSource } from "./providerUtils"; import { testSource } from "./providerUtils";
import { lookmovieScraper } from "@/providers/sources/lookmovie"; import { lookmovieScraper } from "@/providers/sources/lookmovie";
import { testMedia } from "./testMedia"; import { testMedia } from "./testMedia";
import { showboxScraper } from "@/providers/sources/showbox"; import { showboxScraper } from "@/providers/sources/showbox";
// TODO add embed testing
testSource({ testSource({
source: lookmovieScraper, source: lookmovieScraper,
testSuite: [testMedia.arcane, testMedia.hamilton], testSuite: [testMedia.arcane, testMedia.hamilton],

View File

@ -2,6 +2,7 @@ import { flags } from '@/entrypoint/utils/targets';
import { makeEmbed } from '@/providers/base'; import { makeEmbed } from '@/providers/base';
import { parseInputUrl } from '@/providers/embeds/febbox/common'; import { parseInputUrl } from '@/providers/embeds/febbox/common';
import { getStreamQualities } from '@/providers/embeds/febbox/qualities'; import { getStreamQualities } from '@/providers/embeds/febbox/qualities';
import { getSubtitles } from '@/providers/embeds/febbox/subtitles';
export const febboxMp4Scraper = makeEmbed({ export const febboxMp4Scraper = makeEmbed({
id: 'febbox-mp4', id: 'febbox-mp4',
@ -41,7 +42,7 @@ export const febboxMp4Scraper = makeEmbed({
stream: [ stream: [
{ {
id: 'primary', id: 'primary',
captions: [], // subtitles temporarily disabled, the endpoints are broken captions: await getSubtitles(ctx, id, fid, type, episode, season),
qualities, qualities,
type: 'file', type: 'file',
flags: [flags.CORS_ALLOWED], flags: [flags.CORS_ALLOWED],