whoeevee / EeveeSpotify

A tweak to get Spotify Premium for free, just like Spotilife
1.36k stars 109 forks source link

Use Romaji Lyrics when avaible with Genius toggle. #227

Closed yodaluca23 closed 2 days ago

yodaluca23 commented 2 days ago

Closes https://github.com/whoeevee/EeveeSpotify/issues/225 Adds a switch in settings to enable UserDefaults.romanizedLyrics. Reworked Genius quarrying logic, to allow for multiple search attempts. This will also allow for multiple quary formats if needed/wanted. if UserDefaults.romanizedLyrics is enabled first search for "(strippedTitle) (query.primaryArtist) (Romanized)" when using Genius, if that throws an error, and fallback to "(strippedTitle) (query.primaryArtist)".

Currently nothing is preventing the Romanized quary from being used if Genius is triggered as a fallback from another source, this could be easily added, but I was unsure if it is wanted...

yodaluca23 commented 2 days ago

Please squash before/if merging, I had a lot of experimenting lol...