Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Romaji Lyrics when avaible with Genius toggle. #227

Merged
merged 10 commits into from
Jul 5, 2024

Conversation

yodaluca23
Copy link
Contributor

@yodaluca23 yodaluca23 commented Jul 5, 2024

Closes #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
Copy link
Contributor Author

yodaluca23 commented Jul 5, 2024

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

@whoeevee whoeevee marked this pull request as ready for review July 5, 2024 04:19
@whoeevee whoeevee merged commit f79ee3d into whoeevee:swift Jul 5, 2024
1 check passed
yodaluca23 added a commit to yodaluca23/EeveeSpotify that referenced this pull request Jul 7, 2024
* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update EeveeSettingsViewController+LyricsSections.swift

* Update UserDefaults+Extension.swift

* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update GeniusLyricsRepository.swift

* Update UserDefaults+Extension.swift

* Update EeveeSettingsViewController+LyricsSections.swift

* Update EeveeSettingsViewController+LyricsSections.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switching between actual and romaji lyrics for Japanese songs using Genius
2 participants