Command line : Seek forward backward
Bug #136016 reported by
Adam Olsen
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
Changed in exaile: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in exaile: | |
importance: | Low → Wishlist |
milestone: | none → 0.3.x |
Changed in exaile: | |
assignee: | nobody → klz (lowcid) |
status: | Confirmed → Fix Committed |
assignee: | klz (lowcid) → nobody |
To post a comment you must log in.
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 method( 'org.exaile. Exaile' ,'i') PLAYER. seek(player. PLAYER. get_time( ) + value)
< 'CurrentProgress', 'GetVolume', 'Query', 'ScrollSeek']:
---
> 'CurrentProgress', 'GetVolume', 'Query']:
116,117c116
< 'Add',
< 'ScrollSeek'
---
> 'Add'
147d145
<
279,286d276
<
< @dbus.service.
< def ScrollSeek(self, value):
< """
< Seeks to the current_position + value.
< """
< from xl import player
< player.
[/diff xldbus]
[diff main]
commandline $ diff main.py backup/main.py
383,385d382 option( '--scrollseek' , dest="ScrollSeek",
< group.add_
< action='store', type="int", metavar=_('N'),
< help=_('Seeks to current_position + N seconds'))
[/diff main]