Scraping Genius not rendering by jQuery for some reason

This commit is contained in:
James Barnsley
2020-01-22 16:04:19 +13:00
parent bdd82b1447
commit f33e37a1d1
6 changed files with 26951 additions and 18944 deletions

View File

@ -157,7 +157,7 @@ export function getTrackLyrics(uri, path) {
(response, status, xhr) => {
dispatch(uiActions.stopLoading(loader_key));
if (response && response.result) {
const html = $(response.result);
const html = $('<div/>').html(response.result).contents();
let lyrics = html.find('.lyrics');
if (lyrics.length > 0) {
lyrics = lyrics.first();