dasha 2.3.5 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/manifest.js +3 -1
  2. package/package.json +1 -1
package/lib/manifest.js CHANGED
@@ -85,7 +85,9 @@ class Manifest {
85
85
  adaptationSet.representations.some((r) => r.mimeType?.includes('audio'))) &&
86
86
  !adaptationSet.maxWidth;
87
87
  const filterLanguages = (adaptationSet) =>
88
- languages?.length ? languages.some((lang) => adaptationSet.lang?.includes(lang)) : true;
88
+ languages?.length && adaptationSet.lang
89
+ ? languages.some((lang) => adaptationSet.lang.includes(lang))
90
+ : true;
89
91
  const adaptationSets = this.periods
90
92
  .map((p) => p.adaptationSets)
91
93
  .flat(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dasha",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "author": "Vitaly Gashkov <vitalygashkov@vk.com>",
5
5
  "description": "MPD-manifest parser for MPEG DASH",
6
6
  "license": "Apache-2.0",