From cf8dac4c7dc9ecfdb1d3df1c3529c18d13bf24db Mon Sep 17 00:00:00 2001 From: Vitaly Gashkov Date: Sat, 20 Apr 2024 22:29:07 +0500 Subject: [PATCH] fix: get content protection also from representation if available --- lib/dash.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dash.js b/lib/dash.js index ed4e5a1..adce227 100644 --- a/lib/dash.js +++ b/lib/dash.js @@ -322,7 +322,7 @@ const parseManifest = async (text, url, fallbackLanguage) => { const essentialProps = getAll('EssentialProperty'); const accessibilities = adaptationSet.getAll('Accessibility'); const roles = adaptationSet.getAll('Role'); - const contentProtections = adaptationSet.getAll('ContentProtection'); + const contentProtections = getAll('ContentProtection'); const id = [ new URL(baseUrl).hostname, diff --git a/package-lock.json b/package-lock.json index 4affc60..d33c155 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dasha", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dasha", - "version": "3.0.0", + "version": "3.0.1", "funding": [ { "type": "individual", diff --git a/package.json b/package.json index 9d5139c..1114f03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dasha", - "version": "3.0.0", + "version": "3.0.1", "author": "Vitaly Gashkov ", "description": "Parser for MPEG-DASH & HLS manifests", "license": "AGPL-3.0",