Fix a few "no-useless-concat" warnings

This commit is contained in:
Aurélien Mino 2018-11-20 23:45:38 +01:00
parent 785b790887
commit a7376b5336
3 changed files with 6 additions and 7 deletions

View file

@ -533,7 +533,7 @@ function batch_recording_rels() {
get_filtered_page(0);
} else {
queue_recordings_request(
`/ws/2/recording?artist=${ARTIST_MBID}&inc=work-rels` + `&limit=100` + `&offset=${(CURRENT_PAGE - 1) * 100}&fmt=json`
`/ws/2/recording?artist=${ARTIST_MBID}&inc=work-rels&limit=100&offset=${(CURRENT_PAGE - 1) * 100}&fmt=json`
);
}
@ -600,10 +600,9 @@ function batch_recording_rels() {
}
function get_filtered_page(page) {
let url =
`/ws/2/recording?query=${NAME_FILTER ? `${encodeURIComponent(NAME_FILTER)}%20AND%20` : ''}${
ARTIST_FILTER ? `creditname:${encodeURIComponent(ARTIST_FILTER)}%20AND%20` : ''
} arid:${ARTIST_MBID}&limit=100` + `&offset=${page * 100}&fmt=json`;
let url = `/ws/2/recording?query=${NAME_FILTER ? `${encodeURIComponent(NAME_FILTER)}%20AND%20` : ''}${
ARTIST_FILTER ? `creditname:${encodeURIComponent(ARTIST_FILTER)}%20AND%20` : ''
} arid:${ARTIST_MBID}&limit=100&offset=${page * 100}&fmt=json`;
ws_requests.push_get(url, function(data) {
_.each(data.recordings, function(r) {

View file

@ -53,7 +53,7 @@ var labels = {
}
};
var editNote = `Imported from ${document.URL}\n\n` + `GM script: "${meta.name}" (${meta.version})\n\n`;
var editNote = `Imported from ${document.URL}\n\nGM script: "${meta.name}" (${meta.version})\n\n`;
function _clean(s) {
return s

View file

@ -190,7 +190,7 @@ function gazellePageHandler() {
// Common functions
function computeAttachURL(mb_toc_numbers, artistName, releaseName) {
let url = `${'http://musicbrainz.org/cdtoc/attach' + '?toc='}${mb_toc_numbers.join('%20')}&artist-name=${encodeURIComponent(
let url = `${'http://musicbrainz.org/cdtoc/attach?toc='}${mb_toc_numbers.join('%20')}&artist-name=${encodeURIComponent(
artistName
)}&release-name=${encodeURIComponent(releaseName)}`;
return url;