Fix songs count and duration problem #179

Merged
fatmaebrahim merged 2 commits from development_fix_songs_count_and_duration into development 2026-04-28 11:33:13 +00:00
Member

Summary:

  • Songs view now filters to the selected playlist's song_sids instead of showing every song.
  • Uploading with a playlist selected adds the new song to that playlist.
  • Play counter increments via songservice_increment_play on each fresh playback (skipped when re-clicking the currently-playing song).
  • Duration is read on upload via a hidden HtmlAudioElement + loadedmetadata, persisted on the song. Browser-reported duration is ±1s on VBR
    MP3 — server-side extraction can come later if frame accuracy matters.
### Summary: - Songs view now filters to the selected playlist's song_sids instead of showing every song. - Uploading with a playlist selected adds the new song to that playlist. - Play counter increments via songservice_increment_play on each fresh playback (skipped when re-clicking the currently-playing song). - Duration is read on upload via a hidden HtmlAudioElement + loadedmetadata, persisted on the song. Browser-reported duration is ±1s on VBR MP3 — server-side extraction can come later if frame accuracy matters. ### Related Issues: - https://forge.ourworld.tf/lhumina_code/hero_os/issues/66
fix: fixed songs count and duration problem
Some checks failed
Build and Test / build (pull_request) Failing after 3m58s
2b9529a640
fix: fixed ci
All checks were successful
Build and Test / build (pull_request) Successful in 6m12s
7978f0620c
fatmaebrahim merged commit c7fa9fdeb9 into development 2026-04-28 11:33:13 +00:00
fatmaebrahim deleted branch development_fix_songs_count_and_duration 2026-04-28 11:33:14 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos!179
No description provided.