diff --git a/src/__test__/providers/providers.test.ts b/src/__test__/providers/providers.test.ts index 8a2165e..6114f37 100644 --- a/src/__test__/providers/providers.test.ts +++ b/src/__test__/providers/providers.test.ts @@ -1,9 +1,10 @@ -import { describe, expect, it } from "vitest"; import { testSource } from "./providerUtils"; import { lookmovieScraper } from "@/providers/sources/lookmovie"; import { testMedia } from "./testMedia"; import { showboxScraper } from "@/providers/sources/showbox"; +// TODO add embed testing + testSource({ source: lookmovieScraper, testSuite: [testMedia.arcane, testMedia.hamilton], diff --git a/src/providers/embeds/febbox/mp4.ts b/src/providers/embeds/febbox/mp4.ts index b69812f..1122e53 100644 --- a/src/providers/embeds/febbox/mp4.ts +++ b/src/providers/embeds/febbox/mp4.ts @@ -2,6 +2,7 @@ import { flags } from '@/entrypoint/utils/targets'; import { makeEmbed } from '@/providers/base'; import { parseInputUrl } from '@/providers/embeds/febbox/common'; import { getStreamQualities } from '@/providers/embeds/febbox/qualities'; +import { getSubtitles } from '@/providers/embeds/febbox/subtitles'; export const febboxMp4Scraper = makeEmbed({ id: 'febbox-mp4', @@ -41,7 +42,7 @@ export const febboxMp4Scraper = makeEmbed({ stream: [ { id: 'primary', - captions: [], // subtitles temporarily disabled, the endpoints are broken + captions: await getSubtitles(ctx, id, fid, type, episode, season), qualities, type: 'file', flags: [flags.CORS_ALLOWED],