mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
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:
@@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user