mongo-discogs-loader
v0.0.10
Published
Package thats load xml.gz Discogs dumps into MongoDB.
Downloads
10
Readme
Mongo Discogs Loader
CLI thats load xml.gz Discogs dumps into MongoDB.
Installation
npm i -g mongo-discogs-loader
Format
This package loads only main releases (The tracks are loaded into a different collection) and artists.
Album Document Schema
{
_id: ObjectId(),
serialId: string,
artistIds: string[],
name: string,
date: string,
styles: string[],
genres: string[],
tracklist: string[] (Songs serial ids)
}
Song Document Schema
{
_id: ObjectId(),
name: string,
type: string,
albumId: string,
serialId: string (Composed from release `${Discogs ids}_${position}`),
genres: string[],
styles: string[],
position: string,
artistIds: string[] (Discogs ids),
}
Artist Document Schema
{
_id: ObjectId(),
serialId: string,
name: string,
profile?: string,
variations?: string[],
}
Usage
mongo discogs-loader load [options] <Path to xml.gz file - releases | artists>
Options:
-o, --connection <String> Mongo connection URL
-d, --db <String> DB Name (default: "music")
-h, --help display help for command