Command line : Seek forward backward

Bug #136016 reported by Adam Olsen
4
Affects Status Importance Assigned to Milestone
Exaile
Confirmed
Wishlist
Unassigned

Bug Description

Just a little enhancement : I would to command exaile with my multimedia keyboard. Now, with the command line option, metacity and gconf-editor I can do : launch exaile, play/pause, next, previous. But I can't seek forward or seek backward because there aren't any option to do that. So, can you add this in the command line ?

This ticket was migrated from the old trac: re #380

Adam Olsen (arolsen)
Changed in exaile:
importance: Undecided → Low
status: New → Confirmed
Adam Olsen (arolsen)
Changed in exaile:
importance: Low → Wishlist
milestone: none → 0.3.x
Revision history for this message
klz (lowcid) wrote :

I made minor changes to /usr/lib64/exaile/xl/{main.py,xldbus.py}.

Now i can seek foward and backward N seconds from current position, with a command line option.
exaile --scrollseek 10 (goes 10 seconds forward)
exaile --scrollseek -13 (goes back 13 seconds)

I added the new version of the file I made as attachment (exa.tar), below also the diffs.

[diff xldbus]

commandline $ diff xldbus.py backup/xldbus.py

85c85
< 'CurrentProgress', 'GetVolume', 'Query', 'ScrollSeek']:
---
> 'CurrentProgress', 'GetVolume', 'Query']:
116,117c116
< 'Add',
< 'ScrollSeek'
---
> 'Add'
147d145
<
279,286d276
<
< @dbus.service.method('org.exaile.Exaile','i')
< def ScrollSeek(self, value):
< """
< Seeks to the current_position + value.
< """
< from xl import player
< player.PLAYER.seek(player.PLAYER.get_time() + value)
[/diff xldbus]

[diff main]
commandline $ diff main.py backup/main.py

383,385d382
< group.add_option('--scrollseek', dest="ScrollSeek",
< action='store', type="int", metavar=_('N'),
< help=_('Seeks to current_position + N seconds'))
[/diff main]

klz (lowcid)
Changed in exaile:
assignee: nobody → klz (lowcid)
status: Confirmed → Fix Committed
assignee: klz (lowcid) → nobody
Revision history for this message
Mathias Brodala (mathbr) wrote :

This was not committed to trunk or any branch of Exaile. Please leave changing the bug status to the developers.

Changed in exaile:
status: Fix Committed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.