|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Labels from python-musicbrainz2I've tried searching for an answer to this with little luck(googling
etc...). My problem is this, after reading the examples and digging around the api documentation, i'm still not getting how to grab labels from artist/album or releases.... Closest match was on this page: http://users.musicbrainz.org/~matt/python-musicbrainz2/html/musicbrainz2.webservice.Query-class.html And i've added the 'labels=True' to releaseIncludes, which is what i'd have though would populate an object in releases like it does with artist or tracks. From the examples: import musicbrainz2.webservice as ws q = ws.Query() releaseId = '33dbcf02-25b9-4a35-bdb7-729455f33ad7' include = ws.ReleaseIncludes(artist=True, tracks=True,labels=True) release = q.getReleaseById(releaseId, include) This isn't right obviously, what I would do to grab the label, say from a release? Thanks, -hagan _______________________________________________ MusicBrainz-devel mailing list MusicBrainz-devel@... http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel |
|
|
Re: Labels from python-musicbrainz2Try this:
include = ws.ReleaseIncludes(artist=True, tracks=True, labels=True, releaseEvents=True)
On Mon, Oct 5, 2009 at 5:30 PM, Hagan Franks <franks@...> wrote: I've tried searching for an answer to this with little luck(googling _______________________________________________ MusicBrainz-devel mailing list MusicBrainz-devel@... http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel |
|
|
Re: Labels from python-musicbrainz2Thanks for the help. I managed to get the record label from the command
line using: events = release.getReleaseEvents() events[some #].label.name That gave me a record label, which is fantastic... If there is a better way, please let me know. thanks again, -hagan Bob Faist wrote: > Try this: > > include = ws.ReleaseIncludes(artist=True, tracks=True, labels=True, > releaseEvents=True) > > > > On Mon, Oct 5, 2009 at 5:30 PM, Hagan Franks <franks@... > <mailto:franks@...>> wrote: > > I've tried searching for an answer to this with little luck(googling > etc...). My problem is this, after reading the examples and digging > around the api documentation, i'm still not getting how to grab labels > from artist/album or releases.... > > Closest match was on this page: > http://users.musicbrainz.org/~matt/python-musicbrainz2/html/musicbrainz2.webservice.Query-class.html > <http://users.musicbrainz.org/%7Ematt/python-musicbrainz2/html/musicbrainz2.webservice.Query-class.html> > > And i've added the 'labels=True' to releaseIncludes, which is what i'd > have though would populate an object in releases like it does with > artist or tracks. From the examples: > > import musicbrainz2.webservice as ws > q = ws.Query() > releaseId = '33dbcf02-25b9-4a35-bdb7-729455f33ad7' > include = ws.ReleaseIncludes(artist=True, tracks=True,labels=True) > release = q.getReleaseById(releaseId, include) > > > This isn't right obviously, what I would do to grab the label, say > from > a release? > > Thanks, > > -hagan > > _______________________________________________ > MusicBrainz-devel mailing list > MusicBrainz-devel@... > <mailto:MusicBrainz-devel@...> > http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel > > > ------------------------------------------------------------------------ > > _______________________________________________ > MusicBrainz-devel mailing list > MusicBrainz-devel@... > http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel _______________________________________________ MusicBrainz-devel mailing list MusicBrainz-devel@... http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel |
| Free embeddable forum powered by Nabble | Forum Help |