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

Commit 4b0d949

Browse files
authored
Merge pull request #47 from internet4000/feat/discogs-url
feat: add the possibility of a discogsUrl onto a track
2 parents 7f1a159 + be37ad9 commit 4b0d949

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
@@ -229,6 +229,9 @@
229229
"url": {
230230
".validate": "newData.isString() && newData.val().length > 3"
231231
},
232+
"discogsUrl": {
233+
".validate": "newData.isString() && newData.val().length > 3"
234+
},
232235
"title": {
233236
".validate": "newData.isString() && newData.val().length > 0"
234237
},

0 commit comments

Comments
 (0)