Tweaking uri encoding...
This commit is contained in:
@ -119672,6 +119672,10 @@ var MopidyMiddleware = function () {
|
||||
var tracks = Object(lodash__WEBPACK_IMPORTED_MODULE_3__["compact"])(Object(_util_arrays__WEBPACK_IMPORTED_MODULE_7__["indexToArray"])(_response).map(function (results) {
|
||||
return results.length ? Object(_util_format__WEBPACK_IMPORTED_MODULE_6__["formatTrack"])(results[0]) : null;
|
||||
}));
|
||||
console.debug({
|
||||
_response: _response,
|
||||
tracks: tracks
|
||||
});
|
||||
store.dispatch(coreActions.itemsLoaded(tracks));
|
||||
store.dispatch(mopidyActions.getImages(Object(_util_arrays__WEBPACK_IMPORTED_MODULE_7__["arrayOf"])('uri', tracks)));
|
||||
|
||||
@ -126665,6 +126669,8 @@ var decodeUri = function 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;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -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