Skip to content

Commit

Permalink
v0.0.3, renamed next to forward and prev to rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelev committed Feb 18, 2018
1 parent 903d3de commit e6a98cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions afsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ def pause(self):
return (yield from self.play_control(2))

@asyncio.coroutine
def next(self):
def forward(self):
"""Next media."""
return (yield from self.play_control(3))

@asyncio.coroutine
def prev(self):
def rewind(self):
"""Previous media."""
return (yield from self.play_control(4))

Expand Down
8 changes: 4 additions & 4 deletions async_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def test_play():
status = yield from afsapi.get_play_status()
print('Status: %s' % status)

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

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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]

setup(name='afsapi',
version='0.0.2',
version='0.0.3',
description='Asynchronous Implementation of the Frontier Silicon API',
author='Krasimir Zhelev',
author_email='krasimir.zhelev@gmail.com',
Expand Down

0 comments on commit e6a98cc

Please sign in to comment.