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

Commit 697b0cc

Browse files
authored
Merge pull request #46 from internet4000/feat/track-media-not-available
feat: allow a track.mediaNotAvailable boolean
2 parents 7c5d13b + bf30116 commit 697b0cc

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
@@ -141,6 +141,7 @@ todo: explain our integration of the Cloudinary service.
141141
|title|`string`|required title of the track. Example: `"Lydia Lunch - This Side of Nowhere (1982)"`|
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"`|
144+
|mediaNotAvailable|`boolean`|is the current track media available, accessible to be consumed|
144145

145146
## Node.js API
146147

database.rules.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@
239239
// can only be updated if the value matches the authenticated users channel id
240240
".validate": "newData.isString() && root.child('users').child(auth.uid).child('channels').child(newData.val()).exists()"
241241
},
242+
"mediaNotAvailable": {
243+
".validate": "newData.isBoolean()"
244+
},
242245
"$other": {
243246
".validate": false
244247
}

0 commit comments

Comments
 (0)