File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,14 @@ def _get_collection(self):
70
70
if not collections ["collection-list" ]:
71
71
raise ui .UserError ("no collections exist for user" )
72
72
73
- # Get all collection IDs, avoiding event collections
74
- collection_ids = [x ["id" ] for x in collections ["collection-list" ]]
73
+ # Get all release collection IDs, avoiding event collections
74
+ collection_ids = [
75
+ x ["id" ]
76
+ for x in collections ["collection-list" ]
77
+ if x ["entity-type" ] == "release"
78
+ ]
75
79
if not collection_ids :
76
- raise ui .UserError ("No collection found." )
80
+ raise ui .UserError ("No release collection found." )
77
81
78
82
# Check that the collection exists so we can present a nice error
79
83
collection = self .config ["collection" ].as_str ()
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ New features:
28
28
:bug: `5832 `
29
29
* :doc: `plugins/playlist `: Support files with the `.m3u8 ` extension.
30
30
:bug: `5829 `
31
+ * :doc: `plugins/mbcollection `: When getting the user collections, only consider
32
+ collections of releases, and ignore collections of other entity types.
31
33
32
34
Bug fixes:
33
35
You can’t perform that action at this time.
0 commit comments