fly-apps / live_beats

MIT License
1.26k stars 159 forks source link

Update Song with correct MP3 metadata #55

Open Croge32 opened 2 years ago

Croge32 commented 2 years ago

This commit fixes an issue where the title/artist information of uploaded files isn't accurate when uploading mp3s. The MP3Stat module seems to parse the mp3 correctly, but doesn't update the artist and title when updating the duration, so in some cases the information saved in the database for a song (and displayed in the UI) will be incorrect or poorly formatted.

Screenshots of the issue: Screen Shot 2022-07-27 at 6 29 42 PM Screen Shot 2022-07-27 at 6 31 01 PM

Screenshots after the fix locally: Screen Shot 2022-07-27 at 6 30 19 PM Screen Shot 2022-07-27 at 6 30 49 PM