Use getOdidoUserAgent in Odido sync CDM path.
This commit is contained in:
parent
c58f9c423b
commit
9759672900
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue