[GH-ISSUE #108] MPRIS position/duration data not being exported properly(?) #43

Closed
opened 2026-03-02 23:43:59 +03:00 by kerem · 3 comments
Owner

Originally created by @sewnie on GitHub (Jan 17, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/108

Describe the bug
the MPRIS data for the duration of the song, and the position and the remaining is unknown.

To Reproduce

~ teapot$ playerctl metadata --format "{{ position }}"
62
~ teapot$ playerctl metadata --format "{{ position }}"
15
~ teapot$ playerctl metadata --format "{{ position }}"
110
~ teapot$ playerctl metadata --format "{{ position }}"
33
~ teapot$ playerctl metadata --format "{{ position }}"
85
~ teapot$ playerctl metadata --format "{{ position }}"
14
~ teapot$ playerctl metadata --format "{{ position }}"
80
~ teapot$ playerctl metadata --format "{{ duration(position) }}"
0:00

Expected behavior
Metadata about the duration and position is properly shown.

Screenshots
The most useless video ever:

https://user-images.githubusercontent.com/47404953/212978732-523d588a-e246-433d-8e91-2f440c4253d5.mp4

now, it may look like the wmusic dockapp is getting the 'information', but in reality it is guessing it.

Environment

  • Application version: cc0fde5e9d
  • Application features: alsa-backend,media-control
Originally created by @sewnie on GitHub (Jan 17, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/108 **Describe the bug** the MPRIS data for the duration of the song, and the position and the remaining is unknown. **To Reproduce** ``` ~ teapot$ playerctl metadata --format "{{ position }}" 62 ~ teapot$ playerctl metadata --format "{{ position }}" 15 ~ teapot$ playerctl metadata --format "{{ position }}" 110 ~ teapot$ playerctl metadata --format "{{ position }}" 33 ~ teapot$ playerctl metadata --format "{{ position }}" 85 ~ teapot$ playerctl metadata --format "{{ position }}" 14 ~ teapot$ playerctl metadata --format "{{ position }}" 80 ~ teapot$ playerctl metadata --format "{{ duration(position) }}" 0:00 ``` **Expected behavior** Metadata about the duration and position is properly shown. **Screenshots** The most useless video ever: https://user-images.githubusercontent.com/47404953/212978732-523d588a-e246-433d-8e91-2f440c4253d5.mp4 now, it may look like the wmusic dockapp is getting the 'information', but in reality it is guessing it. **Environment** - Application version: cc0fde5e9d7f5dd7dace9abe8cd9ea6fe563e7a5 - Application features: `alsa-backend,media-control`
kerem 2026-03-02 23:43:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Jan 18, 2023):

Related: #99

The incorrect "progress" metadata on Linux seems to be the result of these lines of codes:
github.com/aome510/spotify-player@cc0fde5e9d/spotify_player/src/media_control.rs (L26-L39)

Not sure if this can be really fixed. I'll need to do some experiments with my old ubuntu laptop, so it may take a while

<!-- gh-comment-id:1387256766 --> @aome510 commented on GitHub (Jan 18, 2023): Related: #99 The incorrect "progress" metadata on Linux seems to be the result of these lines of codes: https://github.com/aome510/spotify-player/blob/cc0fde5e9d7f5dd7dace9abe8cd9ea6fe563e7a5/spotify_player/src/media_control.rs#L26-L39 Not sure if this can be really fixed. I'll need to do some experiments with my old ubuntu laptop, so it may take a while
Author
Owner

@sewnie commented on GitHub (Jan 18, 2023):

yeah probably..

<!-- gh-comment-id:1387271671 --> @sewnie commented on GitHub (Jan 18, 2023): yeah probably..
Author
Owner

@sewnie commented on GitHub (Jan 20, 2023):

image
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU, what a great song.

<!-- gh-comment-id:1397965270 --> @sewnie commented on GitHub (Jan 20, 2023): ![image](https://user-images.githubusercontent.com/47404953/213629661-1fc9c9fd-a87c-4fae-b1f9-1c07101191ad.png) UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU, what a great song.
Sign in to join this conversation.
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
starred/spotify-player#43
No description provided.