Skip to content

Commit e6a98cc

Browse files
committed
v0.0.3, renamed next to forward and prev to rewind
1 parent 903d3de commit e6a98cc

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

afsapi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@ def pause(self):
350350
return (yield from self.play_control(2))
351351

352352
@asyncio.coroutine
353-
def next(self):
353+
def forward(self):
354354
"""Next media."""
355355
return (yield from self.play_control(3))
356356

357357
@asyncio.coroutine
358-
def prev(self):
358+
def rewind(self):
359359
"""Previous media."""
360360
return (yield from self.play_control(4))
361361

async_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ def test_play():
139139
status = yield from afsapi.get_play_status()
140140
print('Status: %s' % status)
141141

142-
anext = yield from afsapi.next()
143-
print('Next succeeded? - %s' % anext)
142+
forward = yield from afsapi.forward()
143+
print('Next succeeded? - %s' % forward)
144144

145-
prev = yield from afsapi.prev()
146-
print('Prev succeeded? - %s' % prev)
145+
rewind = yield from afsapi.rewind()
146+
print('Prev succeeded? - %s' % rewind)
147147
except Exception as e:
148148
logging.error(traceback.format_exc())
149149

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
]
2727

2828
setup(name='afsapi',
29-
version='0.0.2',
29+
version='0.0.3',
3030
description='Asynchronous Implementation of the Frontier Silicon API',
3131
author='Krasimir Zhelev',
3232
author_email='krasimir.zhelev@gmail.com',

0 commit comments

Comments
 (0)