Skip to content

Commit

Permalink
[ONC-47] Fix playlist/album upload stream gating check (#7811)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Mar 13, 2024
1 parent 5d8fd5b commit 12fc68a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web/src/common/store/upload/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function* uploadWorker(requestChan, respChan, progressChan) {
? makeConfirmerSuccessForCollection
: makeConfirmerSuccess)(id, index),
isCollection ? makeConfirmerFailureCollection(id) : confirmerFailure,
() => {},
() => { },
UPLOAD_TIMEOUT_MILLIS
)
)
Expand Down Expand Up @@ -724,6 +724,10 @@ function* uploadCollection(tracks, userId, collectionMetadata, isAlbum) {
)
collectionMetadata.cover_art_sizes = coverArtResp.id ?? coverArtResp.dirCID

// TODO: Remove these lines when enabling album purchases
collectionMetadata.stream_conditions = null
collectionMetadata.is_stream_gated = false

// Then upload tracks
const tracksWithMetadata = tracks.map((track) => {
const metadata = combineMetadata(track.metadata, collectionMetadata)
Expand Down

0 comments on commit 12fc68a

Please sign in to comment.