[Bug]: MPRIS integration sometimes reports incorrect length #3510

Open
opened 2025-06-20 14:05:04 +00:00 by Readf0x · 1 comment
Readf0x commented 2025-06-20 14:05:04 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.9.0

Checklists

What operating system are you using?

Other Linux

Operating System Version

NixOS Stable 25.05 (commit cec1b0b)

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. Enable MPRIS Integration
  2. Play for a while
  3. Pause song (set position may also cause the bug)

Expected Behavior

mpris:length reports as the length of the song.

Actual Behavior

mpris:length suddenly reports as significantly smaller than than the actual length of the song. It only seems to fix itself if you manually select a song, moving to the next song in the queue after the current ends sometimes does not fix the problem.

Enabled plugins

  1. Discord RPC
  2. Precise Volume
  3. Shortcuts (MPRIS)
  4. Synced Lyrics
  5. Video Quality Changer

Additional Information

This doesn't seem to only affect the MPRIS integration, when the bug occurs, it can also be seen happening to Discord RPC, however, Discord RPC corrects the issue almost immediately after it occurs.

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.9.0 ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Other Linux ### Operating System Version NixOS Stable 25.05 (commit `cec1b0b`) ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps 1. Enable MPRIS Integration 2. Play for a while 3. Pause song (set position may also cause the bug) ### Expected Behavior `mpris:length` reports as the length of the song. ### Actual Behavior `mpris:length` suddenly reports as significantly smaller than than the actual length of the song. It only seems to fix itself if you manually select a song, moving to the next song in the queue after the current ends _sometimes_ does not fix the problem. ### Enabled plugins 1. Discord RPC 2. Precise Volume 3. Shortcuts (MPRIS) 4. Synced Lyrics 5. Video Quality Changer ### Additional Information This doesn't seem to only affect the MPRIS integration, when the bug occurs, it can also be seen happening to Discord RPC, however, Discord RPC corrects the issue almost immediately after it occurs.
JellyBrick commented 2025-07-13 06:46:17 +00:00 (Migrated from github.com)

I think YT's <video> element reports invalid length (YT bug)

I think YT's `<video>` element reports invalid length (YT bug)
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: YTMD/youtube-music#3510
No description provided.