Support for bulk mpd add
This commit is contained in:
parent
f79de2e708
commit
38f61298f8
1 changed files with 9 additions and 0 deletions
|
@ -208,6 +208,15 @@ class MusicMpdPlugin(MusicPlugin):
|
|||
:type resource: str
|
||||
"""
|
||||
|
||||
if isinstance(resource, list):
|
||||
for r in resource:
|
||||
try:
|
||||
self._exec('add', r)
|
||||
except Exception as e:
|
||||
self.logger.warning('Could not add {}: {}'.format(r, e))
|
||||
|
||||
return self.status().output
|
||||
|
||||
return self._exec('add', resource)
|
||||
|
||||
@action
|
||||
|
|
Loading…
Reference in a new issue