Use getOdidoUserAgent in Odido sync CDM path.

This commit is contained in:
Jos Vooges | STH 2026-09-26 04:38:23 +02:00
parent c58f9c423b
commit 9759672900

View file

@ -4,9 +4,9 @@ import { AppError } from "../security/errors";
import type { Config } from "../config"; import type { Config } from "../config";
import { extractOdidoKeys } from "./cdm"; import { extractOdidoKeys } from "./cdm";
import { import {
getOdidoUserAgent,
getPssh, getPssh,
login, login,
ODIDO_USER_AGENT,
playChannel, playChannel,
queryAllChannels, queryAllChannels,
type OdidoChannel, type OdidoChannel,
@ -308,7 +308,7 @@ export async function syncOdidoList(
licUrl: entry.licenseUrl, licUrl: entry.licenseUrl,
licToken: entry.licenseToken, licToken: entry.licenseToken,
cookies: entry.cookies, cookies: entry.cookies,
userAgent: ODIDO_USER_AGENT, userAgent: getOdidoUserAgent(),
}); });
const key = keys.map(parseKey).find((item) => item !== null); const key = keys.map(parseKey).find((item) => item !== null);
if (!key) throw new Error("Geen bruikbare ClearKey ontvangen"); if (!key) throw new Error("Geen bruikbare ClearKey ontvangen");