Comment 1 for bug 136016

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]