Skip to content

Commit

Permalink
fix(gogoanime): title scrape in search() (consumet#530)
Browse files Browse the repository at this point in the history
Update gogoanime.ts

Scrape gogoanime search results titles using .text() instead of attr(title). Some title attributes are invalid, such as Oshi No Ko.
  • Loading branch information
MelvinHK authored May 13, 2024
1 parent a5bd21f commit 6059b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/anime/gogoanime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Gogoanime extends AnimeParser {
$('div.last_episodes > ul > li').each((i, el) => {
searchResult.results.push({
id: $(el).find('p.name > a').attr('href')?.split('/')[2]!,
title: $(el).find('p.name > a').attr('title')!,
title: $(el).find('p.name > a').text(),
url: `${this.baseUrl}/${$(el).find('p.name > a').attr('href')}`,
image: $(el).find('div > a > img').attr('src'),
releaseDate: $(el).find('p.released').text().trim(),
Expand Down

0 comments on commit 6059b41

Please sign in to comment.