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 artist and title from UG for the filename #32

Conversation

wtimme
Copy link
Collaborator

@wtimme wtimme commented Aug 2, 2023

With this branch, the app will use the content of Ultimate Guitar's "og:title" meta tag to suggest a better filename. It's a first step for the implementation of #27.

Take a look at the result:

Screenshot 2023-08-02 at 13 26 33

The first two songs have been imported using this branch, whereas the last two items used the searchText that I entered when looking for the songs.

The newly added MetadataExtractionHelper can be extended to support more pages in the future. The extraction is also covered with unit tests. I needed to add Roboelectric to be able to use Uri in the unit test.

wtimme added 4 commits August 2, 2023 13:15
This is needed so that Android-specific APIs such as `Uri.parse()`
can be used in unit tests.

These changes were added by following the official documentation:
https://robolectric.org/getting-started/
@wtimme wtimme merged commit 928cef0 into AndInTheClouds:master Aug 21, 2023
@wtimme wtimme deleted the feature/27-Use-artist-and-title-from-UG-as-filename branch August 21, 2023 17:11
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.

1 participant