Skip to content

Fix: Ensure up-to-date metadata is used after editing#748

Merged
theovilardo merged 1 commit intomasterfrom
opus-tag-fix
Jan 6, 2026
Merged

Fix: Ensure up-to-date metadata is used after editing#748
theovilardo merged 1 commit intomasterfrom
opus-tag-fix

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

Ensures that when a song is played or its metadata is edited, the most current version of the song's information is used, preventing stale data from being displayed or used.

  • In PlayerViewModel, the showAndPlaySong function now retrieves the latest version of the song from the allSongs list. This ensures any recent metadata changes are immediately reflected when the song is played.
  • Skips direct file modification for .opus and .ogg files during metadata editing to prevent file corruption issues caused by tagging libraries. The app will now only update the MediaStore and its local database for these formats, which is sufficient for the changes to be reflected within the app.
  • Refactors the metadata editing logic in SongMetadataEditor to use the file path directly instead of the song ID for media rescans and file operations, making the process more reliable.
  • Adds extensive logging to the metadata editing process for improved debugging.

Ensures that when a song is played or its metadata is edited, the most current version of the song's information is used, preventing stale data from being displayed or used.

- In `PlayerViewModel`, the `showAndPlaySong` function now retrieves the latest version of the song from the `allSongs` list. This ensures any recent metadata changes are immediately reflected when the song is played.
- Skips direct file modification for `.opus` and `.ogg` files during metadata editing to prevent file corruption issues caused by tagging libraries. The app will now only update the MediaStore and its local database for these formats, which is sufficient for the changes to be reflected within the app.
- Refactors the metadata editing logic in `SongMetadataEditor` to use the file path directly instead of the song ID for media rescans and file operations, making the process more reliable.
- Adds extensive logging to the metadata editing process for improved debugging.
@theovilardo theovilardo merged commit 40ce5bd into master Jan 6, 2026
@lostf1sh lostf1sh deleted the opus-tag-fix branch January 16, 2026 20:38
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