orhun / CoolModFiles

A web player that plays some cool MOD files randomly 🎶
https://CoolModFiles.com
GNU General Public License v3.0
136 stars 12 forks source link

[feature request] play/browse by genres #20

Open awsms opened 2 years ago

awsms commented 2 years ago

https://modarchive.org/index.php?request=view_genres

would be great :-)

peymil commented 2 years ago

The only option i can think of is creating a server to fetch genres and songs ids from modarchives and serve them to the client app. We have two ways to get these data in the server. Easiest way is getting a key to access xml api of modarchive. We can send "view_genres" and "search" requests and get what we need. API documentation: https://modarchive.org/index.php?xml-api Our second option is scrapping genre and song ids belonging to genre from the actual page. I wrote some functions for scrapping in my fork's genre branch.