Skip to content

[Feature] Import title and artist metadata from ChordPro file #500

Description

@mrjfilippo

What would you like?

When importing a ChordPro file, automatically populate the song's Title and Artist fields from the metadata contained in the file.

For example, this ChordPro file contains:

{title:Heart of Gold}
{subtitle:Neil Young}
{artist:Neil Young}
{composer:Neil Young}
{year:1972}
{album:Harvest}
{key:G}

However, after importing it:

  • The Title field is not set to Heart of Gold.
  • The Artist field remains empty.
  • In this example, the Title field instead contains the Android/OneDrive content URI (content://com.microsoft.skydrive...).

Why would this be useful?

The title and artist information is already present in the ChordPro file, so having to enter it manually after every import is unnecessary.

Automatically importing this metadata would make importing an existing ChordPro song collection smoother.

How might it work?

When importing a ChordPro file, parse the standard metadata directives and use them to populate the corresponding song fields.

For example:

  • {title:Heart of Gold} → Title: Heart of Gold
  • {artist:Neil Young} → Artist: Neil Young

The file name or Android content URI could still be used as a fallback when no title directive is present.

Alternatives Considered

The current workaround is to manually copy the title and artist from the imported ChordPro content into the corresponding fields before saving the song.

This works, but becomes tedious when importing multiple songs.

Additional Context

This does not appear to be specific to OneDrive. I see the same behavior when importing ChordPro files from other locations as well.

Example file content:

{title:Heart of Gold}
{subtitle:Neil Young}
{artist:Neil Young}
{composer:Neil Young}
{year:1972}
{album:Harvest}
{key:G}

Screenshot attached showing the result after importing the file.

Image

Imported file

Heart-of-Gold.pro.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions