Merge branch 'master' of github.com:IrosTheBeggar/mStream

This commit is contained in:
Namanyay Goel 2017-04-28 13:30:15 +05:30
commit 2b29025dd8
4 changed files with 8 additions and 10 deletions

View File

@ -79,7 +79,9 @@ http://yourserver.com/vPath/filepath/song.mp3?token=XXXXXXXX
[/playlist/delete](API/playlist_delete.md)
### Database Read (Albums/Artists/Etc)
### Metadata (Albums/Artists/Etc)
[/db/metadata](API/db_metadata.md)
[/db/search](API/db_search.md)
@ -93,7 +95,7 @@ http://yourserver.com/vPath/filepath/song.mp3?token=XXXXXXXX
### JukeBox
[/jukebox/push-to-client.md](API/jukebox_push-to-client.md)
[/jukebox/push-to-client](API/jukebox_push-to-client.md)
### Download

View File

@ -33,10 +33,10 @@
{
"filepath":"/path/to/file.mp3",
"metadata":{
"artist": "",
"album": "",
"artist": "Artist",
"album": "Album",
"track": 1,
"title": "",
"title": "Song Title",
"year": 1990,
"album-art": "hash.jpg"
}

View File

@ -215,12 +215,8 @@ exports.setup = function(mstream, program){
// TODO: Make this queue run several in parallel
// Scan on startup
function *bootScan(){
console.log('yo');
// Loop through list of users
for (let username in program.users) {
console.log(username);
console.log(program.users[username]);
yield scanIt( {
username: username,
musicDir: program.users[username].musicDir,

View File

@ -55,7 +55,7 @@ exports.setup = function (mstream, dbSettings){
db.run(playlistSql, function() {});
// TODO: Finish and test this
// Finish and test this
mstream.post('/db/metadata', function (req, res){
var relativePath = req.body.filepath;
var fullpath = fe.join(req.user.musicDir, relativePath);