← Back to team overview

desktop-packages team mailing list archive

[Bug 1537057] [NEW] rhytembox-client --print-playing-format %te partially broken

 

Public bug reported:

Hello Launchpad,

I was setting up keyboard shortcuts for controlling rhytembox entirely
via keyboard in the background. While most of the commands can be bound
quite easily using the rhytembox-client, i found a weird behavior when
using the current time to skip ahead (using seek)

In order to get the current position in the track, in use the command
rhytembox-client --print-playing-format %te

As this gives me the format in hour:minute:seconds. This works up to a
track length of 1:11:34, then there seems to be an error, and counting
starts from 0 again; here is an example of the output while listening to
a long track:

while true; do rhythmbox-client --print-playing-format %te; sleep 1; done
1:11:30
1:11:31
1:11:32
1:11:33
1:11:34
Unbekannt
0:01
0:02
0:03
0:04
0:05
0:06
0:07
^C

I've tested this with several tracks - they all split behave the same.
So my guess is that this is some kind of overflow in the timing ?

Of course, not many tracks are that long, but i'd still like to point
this out. Makes the while skipping forward via the client very hard, as
the time playing is not really reliable.

Not sure if this should be mentioned here or go into the wishlist, but
it would be great if the output format could also print seconds. It
would be very useful with seek to easily fast forward/backward.

Thanks in advance

** Affects: rhythmbox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to rhythmbox in Ubuntu.
https://bugs.launchpad.net/bugs/1537057

Title:
  rhytembox-client --print-playing-format %te partially broken

Status in rhythmbox package in Ubuntu:
  New

Bug description:
  Hello Launchpad,

  I was setting up keyboard shortcuts for controlling rhytembox entirely
  via keyboard in the background. While most of the commands can be
  bound quite easily using the rhytembox-client, i found a weird
  behavior when using the current time to skip ahead (using seek)

  In order to get the current position in the track, in use the command
  rhytembox-client --print-playing-format %te

  As this gives me the format in hour:minute:seconds. This works up to a
  track length of 1:11:34, then there seems to be an error, and counting
  starts from 0 again; here is an example of the output while listening
  to a long track:

  while true; do rhythmbox-client --print-playing-format %te; sleep 1; done
  1:11:30
  1:11:31
  1:11:32
  1:11:33
  1:11:34
  Unbekannt
  0:01
  0:02
  0:03
  0:04
  0:05
  0:06
  0:07
  ^C

  I've tested this with several tracks - they all split behave the same.
  So my guess is that this is some kind of overflow in the timing ?

  Of course, not many tracks are that long, but i'd still like to point
  this out. Makes the while skipping forward via the client very hard,
  as the time playing is not really reliable.

  Not sure if this should be mentioned here or go into the wishlist, but
  it would be great if the output format could also print seconds. It
  would be very useful with seek to easily fast forward/backward.

  Thanks in advance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/1537057/+subscriptions


Follow ups