mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:23:24 +00:00
Fix script caching on upcloud
This commit is contained in:
@@ -74,7 +74,12 @@ export const upcloudScraper = makeEmbed({
|
||||
let sources: { file: string; type: string } | null = null;
|
||||
|
||||
if (!isJSON(streamRes.sources)) {
|
||||
const scriptJs = await ctx.proxiedFetcher<string>(`https://rabbitstream.net/js/player/prod/e4-player.min.js`);
|
||||
const scriptJs = await ctx.proxiedFetcher<string>(`https://rabbitstream.net/js/player/prod/e4-player.min.js`, {
|
||||
query: {
|
||||
// browser side caching on this endpoint is quite extreme. Add version query paramter to circumvent any caching
|
||||
v: Date.now().toString(),
|
||||
},
|
||||
});
|
||||
const decryptionKey = extractKey(scriptJs);
|
||||
if (!decryptionKey) throw new Error('Key extraction failed');
|
||||
|
||||
|
@@ -5,7 +5,6 @@ import { getFlixhqMovieSources, getFlixhqShowSources, getFlixhqSourceDetails } f
|
||||
import { getFlixhqId } from '@/providers/sources/flixhq/search';
|
||||
import { NotFoundError } from '@/utils/errors';
|
||||
|
||||
// TODO tv shows are available in flixHQ, just no scraper yet
|
||||
export const flixhqScraper = makeSourcerer({
|
||||
id: 'flixhq',
|
||||
name: 'FlixHQ',
|
||||
|
Reference in New Issue
Block a user