Skip to content

Commit

Permalink
follow cover representation change nondanee#524
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed May 2, 2020
1 parent d328b60 commit c905813
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const find = id => {
info.name = (info.name || '')
.replace(/\s*cover[:\s][^]+/i, '')
.replace(/\(\s*cover[:\s][^\)]+\)/i, '')
.replace(/\s*[:\s][^]+/, '')
.replace(/\(\s*[:\s][^\)]+\)/, '')
info.album = filter(jsonBody.songs[0].album, ['id', 'name'])
info.artists = jsonBody.songs[0].artists.map(artist => filter(artist, ['id', 'name']))
info.keyword = info.name + ' - ' + limit(info.artists.map(artist => artist.name)).join(' / ')
Expand Down

0 comments on commit c905813

Please sign in to comment.