mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 05:02:06 +00:00
lint
This commit is contained in:
@ -47,7 +47,7 @@ function handle(win) {
|
|||||||
const songMetadata = { ...metadata, ...currentMetadata };
|
const songMetadata = { ...metadata, ...currentMetadata };
|
||||||
|
|
||||||
if (!songMetadata.image && songMetadata.imageSrc) {
|
if (!songMetadata.image && songMetadata.imageSrc) {
|
||||||
songMetadata.image = await getImage(songMetadata.imageSrc)
|
songMetadata.image = await getImage(songMetadata.imageSrc);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -38,7 +38,7 @@ const getArtist = async (win) => {
|
|||||||
artistName.textContent;
|
artistName.textContent;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fill songInfo with empty values
|
// Fill songInfo with empty values
|
||||||
@ -109,7 +109,7 @@ function cleanupArtistName(artist) {
|
|||||||
}
|
}
|
||||||
for (const suffix of suffixesToRemove) {
|
for (const suffix of suffixesToRemove) {
|
||||||
if (artist.endsWith(suffix)) {
|
if (artist.endsWith(suffix)) {
|
||||||
return artist.slice(0, -suffix.length)
|
return artist.slice(0, -suffix.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return artist;
|
return artist;
|
||||||
|
|||||||
Reference in New Issue
Block a user