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