Skip to content

Commit

Permalink
fix: get content protection also from representation if available
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalygashkov committed Apr 20, 2024
1 parent 06cb86f commit cf8dac4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dasha",
"version": "3.0.0",
"version": "3.0.1",
"author": "Vitaly Gashkov <[email protected]>",
"description": "Parser for MPEG-DASH & HLS manifests",
"license": "AGPL-3.0",
Expand Down

0 comments on commit cf8dac4

Please sign in to comment.