For the database serde implementation use Mbid rather than MbRef #199
@ -1,9 +1,12 @@
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use musichoard::{collection::musicbrainz::Mbid, external::musicbrainz::{
|
||||
use musichoard::{
|
||||
collection::musicbrainz::Mbid,
|
||||
external::musicbrainz::{
|
||||
api::{lookup::LookupArtistRequest, MusicBrainzClient},
|
||||
http::MusicBrainzHttp,
|
||||
}};
|
||||
},
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
use uuid::Uuid;
|
||||
|
||||
|
@ -5,7 +5,8 @@ use std::{num::ParseIntError, str::FromStr};
|
||||
use musichoard::{
|
||||
collection::{album::AlbumDate, musicbrainz::Mbid},
|
||||
external::musicbrainz::{
|
||||
api::{search::SearchReleaseGroupRequest, MusicBrainzClient}, http::MusicBrainzHttp,
|
||||
api::{search::SearchReleaseGroupRequest, MusicBrainzClient},
|
||||
http::MusicBrainzHttp,
|
||||
},
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
|
4
src/external/database/serde/serialize.rs
vendored
4
src/external/database/serde/serialize.rs
vendored
@ -3,7 +3,9 @@ use std::collections::BTreeMap;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::{
|
||||
collection::musicbrainz::Mbid, core::collection::{album::Album, artist::Artist, musicbrainz::IMusicBrainzRef, Collection}, external::database::serde::common::{SerdeAlbumPrimaryType, SerdeAlbumSecondaryType}
|
||||
collection::musicbrainz::Mbid,
|
||||
core::collection::{album::Album, artist::Artist, musicbrainz::IMusicBrainzRef, Collection},
|
||||
external::database::serde::common::{SerdeAlbumPrimaryType, SerdeAlbumSecondaryType},
|
||||
};
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
|
5
src/external/musicbrainz/api/lookup.rs
vendored
5
src/external/musicbrainz/api/lookup.rs
vendored
@ -2,7 +2,10 @@ use serde::Deserialize;
|
||||
use url::form_urlencoded;
|
||||
|
||||
use crate::{
|
||||
collection::{album::{AlbumDate, AlbumPrimaryType, AlbumSecondaryType}, musicbrainz::Mbid},
|
||||
collection::{
|
||||
album::{AlbumDate, AlbumPrimaryType, AlbumSecondaryType},
|
||||
musicbrainz::Mbid,
|
||||
},
|
||||
external::musicbrainz::{
|
||||
api::{
|
||||
Error, MusicBrainzClient, SerdeAlbumDate, SerdeAlbumPrimaryType,
|
||||
|
5
src/tui/lib/external/musicbrainz/mod.rs
vendored
5
src/tui/lib/external/musicbrainz/mod.rs
vendored
@ -1,7 +1,10 @@
|
||||
//! Module for interacting with the [MusicBrainz API](https://musicbrainz.org/doc/MusicBrainz_API).
|
||||
|
||||
use musichoard::{
|
||||
collection::{album::{Album, AlbumDate}, musicbrainz::Mbid},
|
||||
collection::{
|
||||
album::{Album, AlbumDate},
|
||||
musicbrainz::Mbid,
|
||||
},
|
||||
external::musicbrainz::{
|
||||
api::{
|
||||
search::{SearchReleaseGroupRequest, SearchReleaseGroupResponseReleaseGroup},
|
||||
|
Loading…
Reference in New Issue
Block a user