Skip to content

Commit

Permalink
Merge pull request #85 from PlayNetwork/v2.2.2
Browse files Browse the repository at this point in the history
adjusting history and version
  • Loading branch information
brozeph committed Mar 1, 2019
2 parents a5a2d07 + b24e0b6 commit e57046a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.2.2 - 2019/03/01

* Adjusted playback module to accept `isrc` or `trackId` as a content identifier

# v2.2.1 - 2019/02/19

* Add orderAction to provision module
Expand Down
4 changes: 3 additions & 1 deletion lib/playback.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ module.exports = function (playbackOptions, ensureAuthHeaders, self) {
if (validation.isEmpty(playback.content.assetId) &&
validation.isEmpty(playback.content.legacyTrackToken) &&
(validation.isEmpty(playback.content.legacy) ||
validation.isEmpty(playback.content.legacy.trackToken))) {
validation.isEmpty(playback.content.legacy.trackToken)) &&
validation.isEmpty(playback.content.trackId) &&
validation.isEmpty(playback.content.isrc)) {
return yield Promise.reject(new Error('content identifier is required'));
}

Expand Down
6 changes: 4 additions & 2 deletions package-lock.json

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

0 comments on commit e57046a

Please sign in to comment.