Kylart / MalScraper

Scrape everything you can from MyAnimeList.net
MIT License
177 stars 50 forks source link

Fix single genre parsing #111

Closed VenkatLohithDasari closed 1 year ago

VenkatLohithDasari commented 1 year ago

Fix empty genres for single-genre anime scraping

I encountered an issue while scraping My Hero Academia from MyAnimeList. The genres field was empty, showing only [""], despite the anime having a genre, which is "Action". I noticed that this problem occurs specifically with anime that have a single genre.

I made some simple changes to the code (result.genres part). The modifications now correctly handle scraping single-genre anime, ensuring that the genres field is populated accurately.

This pull request aims to improve the scraping process for others who may encounter similar issues with scraping anime data.