[#304] Rewrite Picovoice integrations #385

Merged
blacklight merged 36 commits from 304-new-picovoice-integration into master 2024-05-02 02:50:51 +02:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 47926290a2 - Show all commits

View File

@ -255,6 +255,8 @@ class MusicMopidyPlugin(RunnablePlugin):
ret = self._add(resource, position=0)
if not ret:
self.logger.warning('Failed to add %s to the tracklist', resource)
elif isinstance(ret, list):
track_id = ret[0].get('tlid')
elif isinstance(ret, dict):
track_id = ret.get('tlid')
elif position is not None: