summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikosapi <me@nikosapi.org>2010-02-01 19:54:40 (GMT)
committer nikosapi <me@nikosapi.org>2010-02-01 19:54:40 (GMT)
commit4a5a25638eb5f757b5ac2902f4dfc53427e1669e (patch)
treeb3bdda5549a4d5c542e4c9d19e6e922498006030
parent584729394265db7418a2449d06e99af2c467a0ba (diff)
downloadpanucci-4a5a25638eb5f757b5ac2902f4dfc53427e1669e.zip
panucci-4a5a25638eb5f757b5ac2902f4dfc53427e1669e.tar.gz
panucci-4a5a25638eb5f757b5ac2902f4dfc53427e1669e.tar.bz2
Change some confusing parameter names
-rw-r--r--src/panucci/playlist.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/panucci/playlist.py b/src/panucci/playlist.py
index 3d2d337..865ed54 100644
--- a/src/panucci/playlist.py
+++ b/src/panucci/playlist.py
@@ -469,13 +469,13 @@ class Playlist(ObservableService):
self.__queue.current_item.save_bookmark(
_('Auto Bookmark'), position, True )
- def skip(self, skip_by=None, skip_to=None, dont_loop=False):
+ def skip(self, skip_by=None, skip_to=None, loop=True):
""" Skip to another track in the playlist.
Use either skip_by or skip_to, skip_by has precedence.
skip_to: skip to a known playlist position
skip_by: skip by n number of episodes (positive or negative)
- dont_loop: prevents looping if the track requested lays out of
- the 0 to queue_length-1 boundary.
+ loop: loop if the track requested lays out of
+ the 0 to queue_length-1 boundary.
"""
if not self.__queue:
return False
@@ -491,9 +491,9 @@ class Playlist(ObservableService):
self.__log.warning('No skip method provided...')
if not 0 <= skip < self.queue_length:
- self.notify( 'end-of-playlist', not dont_loop, caller=self.skip )
+ self.notify( 'end-of-playlist', loop, caller=self.skip )
- if dont_loop:
+ if not loop:
self.__log.warning( "Can't skip to non-existant file w/o loop."
" (requested=%d, total=%d)", skip,
self.queue_length )
@@ -522,11 +522,11 @@ class Playlist(ObservableService):
def next(self):
""" Move the playlist to the next track.
False indicates end of playlist. """
- return self.skip( skip_by=1, dont_loop=True )
+ return self.skip( skip_by=1, loop=False )
def prev(self):
""" Same as next() except moves to the previous track. """
- return self.skip( skip_by=-1, dont_loop=True )
+ return self.skip( skip_by=-1, loop=False )
class Queue(list, ObservableService):