Add initial Amazon Music support
This commit is contained in:
parent
bd85678303
commit
b0fcf55071
25 changed files with 248 additions and 222 deletions
|
@ -18,7 +18,7 @@ export function parseUrl(url) {
|
|||
}
|
||||
|
||||
function exactMatch(needle, haystack, type, various) {
|
||||
// try to find exact match
|
||||
// try to find exact match
|
||||
return haystack.find((entry) => {
|
||||
if (!entry[type] || (various && (entry.artist.name !== 'Various' || entry.artist.name !== 'Various Artists'))) {
|
||||
return false;
|
||||
|
@ -32,7 +32,7 @@ function exactMatch(needle, haystack, type, various) {
|
|||
}
|
||||
|
||||
function looseMatch(needle, haystack, type, various) {
|
||||
// try to find exact match
|
||||
// try to find exact match
|
||||
return haystack.find((entry) => {
|
||||
if (!entry[type] || (various && (entry.artist.name !== 'Various' || entry.artist.name !== 'Various Artists'))) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue