mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 05:04:13 +00:00
Fix various warnings
Unused variable, left-over comma and nonstrict comparisons.
This commit is contained in:
parent
e6b6a26559
commit
c29313e000
2 changed files with 5 additions and 8 deletions
|
@ -37,9 +37,6 @@ function retrieveReleaseInfo(release_url) {
|
|||
var release_date_strings = [
|
||||
'Release Date', 'Fecha de lanzamiento', 'Date de sortie', 'Erscheinungsdatum', 'Data de lançamento', 'Releasedatum', "Data di uscita", "リリース予定日"
|
||||
];
|
||||
var release_strings = [
|
||||
'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento'
|
||||
];
|
||||
var labels_strings = [
|
||||
'Labels', 'Sello', 'Gravadoras', "Label", "Etichetta", "Editora", "レーベル"
|
||||
];
|
||||
|
@ -82,13 +79,13 @@ function retrieveReleaseInfo(release_url) {
|
|||
|
||||
var artists = [];
|
||||
t.artists.forEach(
|
||||
function ( artist, index, arr ) {
|
||||
function (artist) {
|
||||
artists.push(artist.name);
|
||||
release_artists.push(artist.name);
|
||||
}
|
||||
);
|
||||
var title = t.name;
|
||||
if (t.mixName && t.mixName != 'Original Mix' && t.mixName != 'Original') {
|
||||
if (t.mixName && t.mixName !== 'Original Mix' && t.mixName !== 'Original') {
|
||||
title += ' (' + t.mixName + ')';
|
||||
}
|
||||
tracks.push({
|
||||
|
|
|
@ -47,7 +47,7 @@ function retrieveReleaseInfo(release_url) {
|
|||
type: '',
|
||||
urls: [],
|
||||
labels: [],
|
||||
discs: [],
|
||||
discs: []
|
||||
};
|
||||
|
||||
// URLs
|
||||
|
@ -70,7 +70,7 @@ function retrieveReleaseInfo(release_url) {
|
|||
var release_artists = [];
|
||||
$.each(the_tracks,
|
||||
function (idx, track) {
|
||||
if (track.release.id != ProductDetail.id) {
|
||||
if (track.release.id !== ProductDetail.id) {
|
||||
return;
|
||||
}
|
||||
if (seen_tracks[track.id]) {
|
||||
|
@ -87,7 +87,7 @@ function retrieveReleaseInfo(release_url) {
|
|||
);
|
||||
|
||||
var title = track.name;
|
||||
if (track.mix && track.mix != 'Original Mix') {
|
||||
if (track.mix && track.mix !== 'Original Mix') {
|
||||
title += ' (' + track.mix + ')';
|
||||
}
|
||||
tracks.push({
|
||||
|
|
Loading…
Reference in a new issue