Comments (6)
- There's only the base
Relation
class, so specialized relations likeartist-rels
orurl-rels
are not available at the moment. - The
Score
value will only be set for search requests. - If any other properties are null, this usually means that they were not available in the server response.
- If you want to include additional information in a
Get
request, use theinc
parameter, for example
Artist.GetAsync(mbid, "release-groups", "tags", "works");
- If you want to setup the parameters for a
Search
request, you can use theQueryParameters
class, see QueryParametersTests.cs.
from musicbrainz.
I see, great!
Hope to see Relation implemented.
Where can i find Tag list supported?
I found https://picard.musicbrainz.org/docs/tags/
However, it seems i need a different tag list.
from musicbrainz.
A tag is just a string, and most Musicbrainz entities will have a list of tags associated to them. Picard is a tool for tagging audio files (i.e. MP3 tags). Two different things ...
EDIT: I've created a PR #32 to add relationships. Are there any special relationships you would be intersted in to be added?
from musicbrainz.
For me "members" and "original members" are important as it shows the member names of groups (bands).
Other information/images links resources for the singers/band. Like Wikipedia link, BBC music link, etc..
Not sure how important is that.
from musicbrainz.
Ok, to get members and related websites you can now do
var mbid = "ca891d65-d9b0-4258-89f7-e6ba29d83767"; // Iron Maiden
var artist = await Artist.GetAsync(mbid, "artist-rels", "url-rels");
Console.WriteLine("{0} members:", artist.Name);
// To filter relations, inspect "TargetType" and "Type" properties of relation.
foreach (var relation in artist.Relations.Where(r => r.TargetType == "artist" && r.Type.Contains("member")))
{
Console.WriteLine("{0}: {1} ({2} - {3})", relation.Artist.Name, string.Join(" / ", relation.Attributes),
relation.Begin, relation.End);
}
Console.WriteLine("{0} related websites:", artist.Name);
foreach (var relation in artist.Relations.Where(r => r.TargetType == "url"))
{
Console.WriteLine("{0}: {1}", relation.Type, relation.Url.Resource);
}
If you'd like to play around with the code - until the PR gets merged - you can checkout my fork https://github.com/wo80/MusicBrainz.
from musicbrainz.
I checked, it's working!
Thanks, I really appreciate it!
from musicbrainz.
Related Issues (20)
- Is there a way to get Album tracks by Album mbid HOT 4
- Portable vs .NET Standard HOT 6
- Get artist albums by mbid HOT 7
- Getting artists by tag HOT 13
- Should GenerateCommunicationThrow be removed? HOT 19
- Error with Release.GetAsync on a specific album mbid HOT 4
- [Question] Is there a way to hold local metadata in sync? HOT 2
- A move to .NetStandard? HOT 9
- Get by type of albums with ReleaseGroup.BrowseAsync HOT 4
- Get releases by release group id HOT 2
- Support for MusicBrainz mirror servers HOT 6
- 2 calls hang HOT 2
- ReleaseList is expecting `count` and `offset` but is provided `release-count` and `release-offset` HOT 6
- Travis CI HOT 2
- Add genre entity please?
- Can't fetch any data on AspNet Core Blazor WASM HOT 6
- How to get track artist please? HOT 2
- Increasing the accuracy of the searches HOT 3
- QueryParameters() is returning a badly formatted string HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musicbrainz.