Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

Commit be37ad9

Browse files
author
Hugo Vieilledent
committed
feat: add the possibility of a discogsUrl onto a track
1 parent 697b0cc commit be37ad9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ todo: explain our integration of the Cloudinary service.
142142
|url|`string`|the URL pointing to the provider serving the track media (YouTube only). Example: `"https://www.youtube.com/watch?v=5R5bETC_wvA"`|
143143
|ytid|`string`|provider id of a track media (YouTube only). Example: `"5R5bETC_wvA"`|
144144
|mediaNotAvailable|`boolean`|is the current track media available, accessible to be consumed|
145+
|discogsUrl|`string`|the URL pointing to the Discogs release (or master) corresponding to this track media. Example: `"https://www.discogs.com/Nu-Guinea-Nuova-Napoli/master/1334042"`|
145146

146147
## Node.js API
147148

database.rules.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@
226226
"url": {
227227
".validate": "newData.isString() && newData.val().length > 3"
228228
},
229+
"discogsUrl": {
230+
".validate": "newData.isString() && newData.val().length > 3"
231+
},
229232
"title": {
230233
".validate": "newData.isString() && newData.val().length > 0"
231234
},

0 commit comments

Comments
 (0)