Add check for streamUrl
This commit is contained in:
parent
78d635a002
commit
dd5e389739
2 changed files with 4 additions and 1 deletions
|
@ -130,7 +130,7 @@ async function lookupTrack(id) {
|
|||
type: 'track',
|
||||
id: song_meta.videoId,
|
||||
name: song_meta.title,
|
||||
streamUrl: null,
|
||||
streamUrl: `https://music.youtube.com/watch?v=${song_meta.videoId}`,
|
||||
purchaseUrl: null,
|
||||
artwork,
|
||||
artist: {
|
||||
|
@ -184,6 +184,7 @@ async function lookupAlbum(id) {
|
|||
id,
|
||||
name: album_data.title,
|
||||
streamUrl: null,
|
||||
streamUrl: `https://music.youtube.com/browse/${id}`,
|
||||
purchaseUrl: null,
|
||||
artwork,
|
||||
artist: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue