Fix track matching, upgrade GPM heuristics
This commit is contained in:
parent
03c50b550a
commit
d6352b6250
9 changed files with 68 additions and 29 deletions
|
@ -80,7 +80,7 @@ export function* lookupId(id, type) {
|
|||
match.name = topic.property['/type/object/name'].values[0].text;
|
||||
if (topic.property['/music/recording/releases']) {
|
||||
match.type = 'album';
|
||||
match.album.name = topic.property['/music/recording/releases'].values[0].text;
|
||||
match.albumName = topic.property['/music/recording/releases'].values[0].text;
|
||||
}
|
||||
} else if (musicalAlbum) {
|
||||
match.name = topic.property['/type/object/name'].values[0].text;
|
||||
|
@ -103,7 +103,7 @@ export function* search(data) {
|
|||
album = data.name;
|
||||
} else if (type == 'track') {
|
||||
query = data.artist.name + ' ' + data.name;
|
||||
album = data.album.name
|
||||
album = data.albumName
|
||||
}
|
||||
|
||||
const path = '/search?part=snippet&q=' + encodeURIComponent(query) + '&type=video&videoCaption=any&videoCategoryId=10&key=' + credentials.key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue