Comparing version 0.5.5 to 0.5.6
{ | ||
"name": "mediaxml", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "A general purpose module for working with XML that includes first class support for media manifests like ADI, mRSS, and SCTE-236.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
19
xmltv.js
@@ -1073,3 +1073,3 @@ const { AbstractDocument } = require('./document') | ||
if (result) { | ||
return document.constructor.Video.from(document, result) | ||
return document.constructor.VideoDescription.from(document, result) | ||
} | ||
@@ -1081,2 +1081,19 @@ | ||
/** | ||
* The audio description for this programme. | ||
* @public | ||
* @accessor | ||
* @type {Array<AudioDescription>} | ||
*/ | ||
get audio() { | ||
const { document, node } = this | ||
const result = node.query(':children[name ~> /^audio/i]:first') | ||
if (result) { | ||
return document.constructor.AudioDescription.from(document, result) | ||
} | ||
return null | ||
} | ||
/** | ||
* The rating for this programme. | ||
@@ -1083,0 +1100,0 @@ * @public |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2613608
14650