Skip to content

Commit 9f2a85d

Browse files
committed
Fix "%0A" symbol in RYM album links
1 parent 80a4bb2 commit 9f2a85d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/content/engines/integrations/rateyourmusic.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
insertWhere: 'prepend',
1313
iconStyle: 'width: 20px; margin-right: 5px;',
1414
getSearch: function(_el,doc){
15-
var n=doc.querySelector('.album_title');
16-
return (n && (n.textContent||'').trim())||'';
15+
var qat = doc.querySelector('.album_title');
16+
var album = (qat && (qat.textContent||'').split(" ")[0].trim())||'';
17+
return `${album}`;
1718
}
1819
});
1920

0 commit comments

Comments
 (0)