summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikosapi <me@nikosapi.org>2010-02-01 19:57:54 (GMT)
committer nikosapi <me@nikosapi.org>2010-02-01 19:57:54 (GMT)
commit6b5f08f94713c63c92b47abf14eea136b8de5dee (patch)
treed009a900c225d313d8394a71a252eff087830577
parent4a5a25638eb5f757b5ac2902f4dfc53427e1669e (diff)
downloadpanucci-6b5f08f94713c63c92b47abf14eea136b8de5dee.zip
panucci-6b5f08f94713c63c92b47abf14eea136b8de5dee.tar.gz
panucci-6b5f08f94713c63c92b47abf14eea136b8de5dee.tar.bz2
Add missing label parameter to add_bookmark_at_current_position()
-rw-r--r--src/panucci/player.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/panucci/player.py b/src/panucci/player.py
index 9aee1f7..3789b04 100644
--- a/src/panucci/player.py
+++ b/src/panucci/player.py
@@ -72,13 +72,14 @@ class PanucciPlayer(ForwardingObservableService):
self.__log.critical("No player available")
raise AttributeError
- def add_bookmark_at_current_position( self ):
+ def add_bookmark_at_current_position( self, label=None ):
""" Adds a bookmark at the current position
Returns: (bookmark lable string, position in nanoseconds)
"""
- label, position = player.get_formatted_position()
+ default_label, position = player.get_formatted_position()
+ label = default_label if label is None else label
self.playlist.save_bookmark( label, position )
self.__log.info('Added bookmark: %s - %d', label, position)
return label, position