Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when trying to fetch mpris tracks metadata #85

Open
namxam opened this issue Sep 9, 2021 · 1 comment
Open

Issue when trying to fetch mpris tracks metadata #85

namxam opened this issue Sep 9, 2021 · 1 comment

Comments

@namxam
Copy link

namxam commented Sep 9, 2021

I guess I am doing something wrong, but when I call tracklist.GetTracksMetadata(tracks) I receive the following error. I guess I have to prepare tracks differently, but I have no idea what is expected. From what I understand, ao should be an array of object paths. But providing it as a plain js array fails. So I fetched the Tracks property which should return the exact data structure which is required and provide it as the parameter. But this fails as well.

node_modules/dbus-next/lib/marshall-compat.js:123
        throw new Error(`expecting an array for signature '${signatureStr}' (got ${typeof value})`);
              ^
Error: expecting an array for signature 'ao' (got object)
    at jsToMarshalFmt (node_modules/dbus-next/lib/marshall-compat.js:123:15)
    at marshallMessage (node_modules/dbus-next/lib/marshall-compat.js:179:27)
    at EventEmitter.self.message (node_modules/dbus-next/lib/connection.js:141:20)
    at node_modules/dbus-next/lib/bus.js:349:24
    at new Promise (<anonymous>)
    at MessageBus.call (node_modules/dbus-next/lib/bus.js:326:12)
    at node_modules/dbus-next/lib/client/proxy-object.js:163:16
    at new Promise (<anonymous>)
    at ProxyObject._callMethod (node_modules/dbus-next/lib/client/proxy-object.js:151:12)
    at ProxyInterface.iface.<computed> [as GetTracksMetadata] (node_modules/dbus-next/lib/client/proxy-interface.js:218:37)
@acrisci
Copy link
Member

acrisci commented Sep 18, 2021

What player are you using? Can you provide a minimum steps to reproduce the issue as a script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants