Fix opening files from web application

It was trying to send GioFiles over WebSocket. The idea of doing that seems so dumb, that I do not know why I did not notice this issue earlier.
This commit is contained in:
Rafał Dzięgiel
2021-02-24 17:05:49 +01:00
parent 53ad4da7c6
commit e859f5d518

View File

@@ -20,9 +20,20 @@ class ClapperPlayerRemote extends GObject.Object
set_playlist(playlist)
{
const uris = [];
/* We can not send GioFiles via WebSocket */
for(let source of playlist) {
const uri = (source.get_uri != null)
? source.get_uri()
: source;
uris.push(uri);
}
this.webclient.sendMessage({
action: 'set_playlist',
value: playlist
value: uris
});
}
});