timusus / Shuttle

Shuttle Music Player
Other
2.2k stars 478 forks source link

Tag Editor fails to update track number correctly #533

Open MCEmperor opened 3 years ago

MCEmperor commented 3 years ago

Shuttle version:

v2.0.17

Device, OS:

Android 10

Description of bug:

The abum tracks 8 and 9 are displayed as track 0 in the album view.

Steps to reproduce:

  1. Get an MP3 file with existing ID3v2.3 metadata.
  2. Open the Tag Editor.
  3. Change the track number to 8 or 9.
  4. Set the total number of ttacks to some two-digit number, just in case.
  5. Save ID3 tags.
  6. The track is shown on top of the album's track listing, with track number 0`.

Expected outcome:

The tag editor should successfully update the track number.

Observations/Actual Result:

It is peculiar that it happens only for the numbers 8 and 9, and not, for instance, for 7. What comes into my mind is that those two numbers are actually stored as 08 and 09 respectively, and that they are somehow parsed as octal numbers.