Comments (13)
I'm not sure this can be done with the webservice. Obviously, you could do
var artists = await Artist.SearchAsync("tag:pop");
// http://musicbrainz.org/ws/2/artist/?query=tag:pop&fmt=json
but this does not return the list as presented on https://beta.musicbrainz.org/tag/pop/artist (which seems to be sorted by some kind of 'relevance').
from musicbrainz.
I get you.
All these different possibilities with Browse, search or Get is confusing.
3 different methods to get different data.
I know that it is how MusicBrainz works, i guess it's just learning curve.
from musicbrainz.
For example, trying to do:
http://beta.musicbrainz.org/ws/2/release-group/a1084754-8bb5-3ebc-bbd2-6a27d48e798a?inc=ratings+releases
I wrote
var artistTracks = await ReleaseGroup.BrowseAsync("", AlbumMbid, 20, 0, "ratings","releases");
something is wrong with the query string.
from musicbrainz.
I guess after i get into it more i can assist in documentation.
from musicbrainz.
The link corresponds to "get release-group with given MBID and include ratings+releases".
The C# code is missing the related entity (first parameter) to browse for. If it was "artist", the meaning would be "browse all release-groups that are directly linked to artist with given MBID and include ratings+releases".
from musicbrainz.
i did try
await ReleaseGroup.BrowseAsync("artist", AlbumMbid, 20, 0, "ratings","releases");
but i get exception .
from musicbrainz.
Take a look at https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2#Browse
Browsing release-groups does not support including "releases".
At the moment, the exceptions thrown when the webservice fails are not instructive at all. If you look at the response of the request, corresponding to the C# code
error: "releases is not a valid inc parameter for the release-group resource."
you can see the problem. This error message should be included in the exception thrown, so:
please leave this issue open until it gets addressed :-)
from musicbrainz.
Sure,
I want to elaborate what i am trying to do and if it is possible:
First i get artist main albums:
ReleaseGroup.BrowseAsync("artist", artistMbid, limit, 0, "ratings");
I save aside the release group mbid,
Now i want to get the tracks of only one (main one preferable) of that release group, this i where i am stuck. :)
Regarding errors, just a suggestion, to show what MusicBrainz returns as error.
from musicbrainz.
Just chain a couple of requests:
- Browse release-groups:
ReleaseGroup.BrowseAsync("artist", artist_id, ...)
. - Find mbid of release-group you are interested in (don't know what you mean by main one preferable).
- Get details of release-group:
ReleaseGroup.GetAsync(group_id, "artists", "releases")
. - Find mbid of release you are interested in.
- Get details of release:
Release.GetAsync(release_id, "recordings")
.
from musicbrainz.
Great, will check that out.
Regarding "main one", since there are many releases per release group, i need only to feach 1 release from the group. Question is, which 1 to fetch? maybe first country that released it.
from musicbrainz.
Yeah, I usually do something like
var release = releases.Items
.Where(r => r.Date != null)
.OrderBy(r => r.Date)
.First();
from musicbrainz.
That's great, i appreciate that.
Leaving this thread open until exception error:
"releases is not a valid inc parameter for the release-group resource."
is handled.
Link: http://musicbrainz.org/ws/2/release-group?artist=45a663b5-b1cb-4a91-bff6-2bef7bbfdd76&limit=20&offset=0&inc=ratings+releases&fmt=json
from musicbrainz.
error: "releases is not a valid inc parameter for the release-group resource."
fixed, now it shows the error.
from musicbrainz.
Related Issues (20)
- Parameters with query HOT 6
- 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
- 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.