From 795b7ded71435e3b641eddc9cf081c52169207b0 Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Sun, 16 Jan 2022 18:37:48 +0100 Subject: [PATCH 1/2] Add ratings/user-ratings includes to release get and browse Fixes #254 Signed-off-by: Alastair Porter --- musicbrainzngs/musicbrainz.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/musicbrainzngs/musicbrainz.py b/musicbrainzngs/musicbrainz.py index 7e5c2ad..7c7c51a 100644 --- a/musicbrainzngs/musicbrainz.py +++ b/musicbrainzngs/musicbrainz.py @@ -50,8 +50,8 @@ "discids", "media", "aliases", "annotation" ] + RELATION_INCLUDES + TAG_INCLUDES + RATING_INCLUDES, - 'place' : ["aliases", "annotation"] + RELATION_INCLUDES + TAG_INCLUDES, - 'event' : ["aliases"] + RELATION_INCLUDES + TAG_INCLUDES + RATING_INCLUDES, + 'place': ["aliases", "annotation"] + RELATION_INCLUDES + TAG_INCLUDES, + 'event': ["aliases"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'recording': [ "artists", "releases", # Subqueries "discids", "media", "artist-credits", "isrcs", @@ -61,7 +61,7 @@ "artists", "labels", "recordings", "release-groups", "media", "artist-credits", "discids", "isrcs", "recording-level-rels", "work-level-rels", "annotation", "aliases" - ] + TAG_INCLUDES + RELATION_INCLUDES, + ] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'release-group': [ "artists", "releases", "discids", "media", "artist-credits", "annotation", "aliases" @@ -73,11 +73,11 @@ "aliases", "annotation" ] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'url': RELATION_INCLUDES, - 'discid': [ # Discid should be the same as release + 'discid': [ # Discid should be the same as release, no ratings "artists", "labels", "recordings", "release-groups", "media", "artist-credits", "discids", "isrcs", "recording-level-rels", "work-level-rels", "annotation", "aliases" - ] + RELATION_INCLUDES, + ] + TAG_INCLUDES + RELATION_INCLUDES, 'isrc': ["artists", "releases", "isrcs"], 'iswc': ["artists"], 'collection': ['releases'], @@ -88,7 +88,7 @@ 'label': ["aliases"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'recording': ["artist-credits", "isrcs", "work-level-rels"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'release': ["artist-credits", "labels", "recordings", "isrcs", - "release-groups", "media", "discids"] + RELATION_INCLUDES, + "release-groups", "media", "discids"] + RATING_INCLUDES + RELATION_INCLUDES, 'place': ["aliases"] + TAG_INCLUDES + RELATION_INCLUDES, 'release-group': ["artist-credits"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'url': RELATION_INCLUDES, From a24012afdf2dbee4efc4efa9d03463a0b787443b Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Sun, 16 Jan 2022 21:14:01 +0100 Subject: [PATCH 2/2] Add tag includes to release browse Fixes #249 Signed-off-by: Alastair Porter --- musicbrainzngs/musicbrainz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicbrainzngs/musicbrainz.py b/musicbrainzngs/musicbrainz.py index 7c7c51a..a09f68c 100644 --- a/musicbrainzngs/musicbrainz.py +++ b/musicbrainzngs/musicbrainz.py @@ -88,7 +88,7 @@ 'label': ["aliases"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'recording': ["artist-credits", "isrcs", "work-level-rels"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'release': ["artist-credits", "labels", "recordings", "isrcs", - "release-groups", "media", "discids"] + RATING_INCLUDES + RELATION_INCLUDES, + "release-groups", "media", "discids"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'place': ["aliases"] + TAG_INCLUDES + RELATION_INCLUDES, 'release-group': ["artist-credits"] + TAG_INCLUDES + RATING_INCLUDES + RELATION_INCLUDES, 'url': RELATION_INCLUDES,