Skip to content

Commit

Permalink
update jioSaavn.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Oct 15, 2024
1 parent 36f3451 commit fd05dc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/jioSaavn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class JioSaavnAPI {
identifier: track.id,
title: track.title,
length: Number(track.more_info.duration) * 1000,
uri: track.perma_url,
uri: null,
artworkUrl: track.image.replace('150x150', '500x500'),
author: null,
encryptedMediaUrl: null,
Expand All @@ -114,6 +114,11 @@ export class JioSaavnAPI {
albumName: null,
artistArtworkUrl: null,
}

if (track?.perma_url) {
data.uri = track.perma_url,
}

if (track?.more_info.artistMap?.primary_artists?.length) {
data.author = track.more_info.artistMap.primary_artists[0].name
}
Expand Down

1 comment on commit fd05dc7

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on fd05dc7 Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/src/mod.ts".

Please sign in to comment.