Tweaking uri encoding...
This commit is contained in:
@ -622,8 +622,8 @@ class ContextMenu extends React.Component {
|
||||
uris,
|
||||
} = {},
|
||||
} = this.props;
|
||||
const { nice_name } = this.getContext();
|
||||
|
||||
let { nice_name } = this.getContext();
|
||||
switch (nice_name) {
|
||||
case 'artist':
|
||||
case 'album':
|
||||
|
||||
@ -1540,6 +1540,8 @@ const MopidyMiddleware = (function () {
|
||||
(results) => (results.length ? formatTrack(results[0]) : null),
|
||||
));
|
||||
|
||||
console.debug({ _response, tracks })
|
||||
|
||||
store.dispatch(coreActions.itemsLoaded(tracks));
|
||||
store.dispatch(mopidyActions.getImages(arrayOf('uri', tracks)));
|
||||
|
||||
|
||||
@ -309,6 +309,8 @@ const decodeUri = (rawUri) => {
|
||||
uri = uri.replace(/\)/g, '%29');
|
||||
uri = uri.replace(/\[/g, '%5B');
|
||||
uri = uri.replace(/\]/g, '%5D');
|
||||
uri = uri.replace(/ /g, '%20');
|
||||
//uri = uri.replace(/\//g, '%2F');
|
||||
|
||||
console.debug(uri);
|
||||
return uri;
|
||||
|
||||
Reference in New Issue
Block a user