Skip to content

Commit

Permalink
fix(FEC-13566): remove documents from playlist (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura authored Dec 18, 2023
1 parent ac6682a commit f2a1cb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/k-provider/ovp/response-types/kaltura-media-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ export class KalturaMediaEntries extends ServiceResult {
super(responseObj);
if (!this.hasError) {
this.entries = [];
responseObj.map(entry => this.entries.push(new KalturaMediaEntry(entry)));
responseObj.map(entry => {
const kalturaMediaEntry = new KalturaMediaEntry(entry);
if (kalturaMediaEntry.type !== KalturaMediaEntry.EntryType.DOCUMENT.value) {
// filter out documents
this.entries.push(kalturaMediaEntry);
}
});
}
}
}

0 comments on commit f2a1cb3

Please sign in to comment.