Genius scraping working again

This commit is contained in:
James Barnsley
2020-01-22 16:19:57 +13:00
parent f33e37a1d1
commit f581d683bc
6 changed files with 13 additions and 15 deletions

View File

@ -76541,8 +76541,6 @@ function getMe() {
* @param path = String, the relative API path for the HTML lyrics
* */
function getTrackLyrics(uri, path) {
var _this = this;
return function (dispatch, getState) {
dispatch(coreActions.trackLoaded({
uri: uri,
@ -76563,12 +76561,12 @@ function getTrackLyrics(uri, path) {
$.ajax(config).then(function (response, status, xhr) {
dispatch(uiActions.stopLoading(loader_key));
if (response && response.result) {
var html = $('<div/>').html(response.result).contents();
var html = $(response.result);
var lyrics = html.find('.lyrics');
if (lyrics.length > 0) {
lyrics = lyrics.first();
lyrics.find('a').replaceWith(function () {
return _this.innerHTML;
lyrics.find('a').replaceWith(function (item) {
return item.innerHTML;
});
var lyrics_html = lyrics.html();

File diff suppressed because one or more lines are too long

View File

@ -100,7 +100,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1579657760";
var build = "1579662333";
var version = "3.44.0";
// Construct the script tag