File tree 2 files changed +7
-0
lines changed
2 files changed +7
-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,8 @@ 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.
163
+ Thanks to :user: `aereaux `.
162
164
163
165
Fixes:
164
166
You can’t perform that action at this time.
0 commit comments