File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ def get_message(self):
74
74
TRACK_INCLUDES = ['artists' , 'aliases' ]
75
75
if 'work-level-rels' in musicbrainzngs .VALID_INCLUDES ['recording' ]:
76
76
TRACK_INCLUDES += ['work-level-rels' , 'artist-rels' ]
77
+ if 'genres' in musicbrainzngs .VALID_INCLUDES ['recording' ]:
78
+ RELEASE_INCLUDES += ['genres' ]
77
79
78
80
79
81
def track_url (trackid ):
@@ -415,6 +417,9 @@ def album_info(release):
415
417
first_medium = release ['medium-list' ][0 ]
416
418
info .media = first_medium .get ('format' )
417
419
420
+ if release .get ('genre-list' ):
421
+ info .genre = ';' .join (g ['name' ] for g in release ['genre-list' ])
422
+
418
423
info .decode ()
419
424
return info
420
425
Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ New features:
159
159
* :doc: `/plugins/web `: add DELETE and PATCH methods for modifying items
160
160
* :doc: `/plugins/lyrics `: Removed LyricWiki source (shut down on 21/09/2020).
161
161
* Added a ``--plugins `` (or ``-p ``) flag to specify a list of plugins at startup.
162
+ * Use musicbrainz genre tag api to get genre information. This currently
163
+ depends on functionality that is currently unreleased in musicbrainzngs.
164
+ See https://github.com/alastair/python-musicbrainzngs/pull/247 and
165
+ https://github.com/alastair/python-musicbrainzngs/pull/266 .
166
+ Thanks to :user: `aereaux `.
162
167
163
168
Fixes:
164
169
You can’t perform that action at this time.
0 commit comments