Parse and Dicplay zero-padded track numbers

Open Beginner friendly
#515 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
63/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
backend, mobile

Research direction

Start by finding where the player reads track numbers from audio metadata, then check how .flac track numbers are parsed and used for ordering. Reproduce the issue with a zero-padded value such as "01" and compare it with "1"; done when both are recognized as the same track number. The issue does not name a source file or test, so locate the relevant parser and its tests first.

Written by the indexing model from the issue text.

Description

feature request needs triage
Checklist
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.
Feature description

Currently if a track is tagged with a zero-padded numeric string (e.g. "01", "02",) the player does not recognize the track number. It would be nice if it could parse those.

Why do you want this feature?

Sometimes I have files that are tagged with a zero-padded track number rather than a strictly numeric one. This causes the track numbers to be ignored in the player.

Additional information

I wasn't sure whether to call this a bug or a feature. I haven't read any tagging specs, so I don't know whether this is expected behavior. I have other music players that do interpret the zero-padded track numbers, which is why I'm even reporting this at all, but decided on categorizing this as a feature request since the workaround is simply to re-tag the tracks with strictly numeric track numbers.

I see this with .flac files. Haven't tested with any other format.

Dominant language
Kotlin
Stars
933
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FossifyOrg/Music-Player

All issues in FossifyOrg/Music-Player

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.