Skip to content

Commit

Permalink
Update to avoid test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Dec 30, 2024
1 parent e0ce722 commit 8eff592
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/offline/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ shaka.offline.Storage = class {
shaka.drm.DrmEngine.configureClearKey(
config.drm.clearKeys, manifest.variants);

const needsPersistentLicense = manifest.variants.some((v) => {
const clearKeyDataLicenseServerUri = manifest.variants.some((v) => {
if (v.audio) {
for (const drmInfo of v.audio.drmInfos) {
if (!drmInfo.licenseServerUri.startsWith('data:')) {
Expand All @@ -415,10 +415,10 @@ shaka.offline.Storage = class {
return false;
});

const usePersistentLicense =
needsPersistentLicense && config.offline.usePersistentLicense;

console.log(usePersistentLicense);
let usePersistentLicense = config.offline.usePersistentLicense;
if (clearKeyDataLicenseServerUri) {
usePersistentLicense = false;
}

// Create the DRM engine, and load the keys in the manifest.
drmEngine = await this.createDrmEngine(
Expand Down

0 comments on commit 8eff592

Please sign in to comment.