AndInTheClouds / chordreader2

Search for, display, transpose and save chords on your phone, that you get from the interwebs. :notes:
GNU General Public License v3.0
31 stars 8 forks source link

Use artist and title from UG for the filename #32

Closed wtimme closed 1 year ago

wtimme commented 1 year ago

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.