Skip to content

Commit

Permalink
[PAY-2362] Allow offline download (#7253)
Browse files Browse the repository at this point in the history
Co-authored-by: Saliou Diallo <saliou@audius.co>
  • Loading branch information
sddioulde and Saliou Diallo authored Jan 19, 2024
1 parent bdc4997 commit 336abe5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@ def get_track_download_signature(args: GetTrackDownloadSignature):
user_data = args["user_data"]
user_signature = args["user_signature"]
nft_access_signature = args["nft_access_signature"]
is_downloadable = track.get("is_downloadable") or track.get("download", {}).get(
"is_downloadable"
)
cid = track.get("orig_file_cid") if is_original else track.get("track_cid")
if not cid or not is_downloadable:
if not cid:
return None

cid = cid.strip()
Expand Down

0 comments on commit 336abe5

Please sign in to comment.