Sorry for my forced English via Google Translate.
But I already decided! I checked your code and saw that it doesn’t have a specific hook, so the solution was to create a post request to get the current track and search for it in the post type albums, that way I can get the id of the artist I wanted to log to the download. My goal was to limit the number of daily downloads by the user and manage the number of downloads per artist.
Result present at https://hypetracks.io/