0.0.10 • Published 2 years ago

mongo-discogs-loader v0.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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
0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago