aboutsummaryrefslogtreecommitdiff
path: root/pydora/player.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydora/player.py')
-rw-r--r--pydora/player.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pydora/player.py b/pydora/player.py
index 74b6110..fdacc63 100644
--- a/pydora/player.py
+++ b/pydora/player.py
@@ -18,7 +18,7 @@ from .audio_backend import MPG123Player, VLCPlayer
18from .audio_backend import UnsupportedEncoding, PlayerUnusable 18from .audio_backend import UnsupportedEncoding, PlayerUnusable
19 19
20 20
21class PlayerCallbacks(object): 21class PlayerCallbacks:
22 """Interface for Player Callbacks 22 """Interface for Player Callbacks
23 23
24 This class simply exists to document the interface for callback 24 This class simply exists to document the interface for callback
@@ -46,7 +46,7 @@ class PlayerCallbacks(object):
46 pass 46 pass
47 47
48 48
49class PlayerApp(object): 49class PlayerApp:
50 50
51 CMD_MAP = { 51 CMD_MAP = {
52 "n": ("play next song", "skip_song"), 52 "n": ("play next song", "skip_song"),
@@ -122,7 +122,7 @@ class PlayerApp(object):
122 122
123 for i, station in enumerate(self.stations): 123 for i, station in enumerate(self.stations):
124 i = "{:>3}".format(i) 124 i = "{:>3}".format(i)
125 print(u"{}: {}".format(Colors.yellow(i), station.name)) 125 print("{}: {}".format(Colors.yellow(i), station.name))
126 126
127 return self.stations[self.screen.get_integer("Station: ")] 127 return self.stations[self.screen.get_integer("Station: ")]
128 128
@@ -130,10 +130,10 @@ class PlayerApp(object):
130 """Play callback 130 """Play callback
131 """ 131 """
132 if song.is_ad: 132 if song.is_ad:
133 print(u"{} ".format(Colors.cyan("Advertisement"))) 133 print("{} ".format(Colors.cyan("Advertisement")))
134 else: 134 else:
135 print(u"{} by {}".format(Colors.cyan(song.song_name), 135 print("{} by {}".format(Colors.cyan(song.song_name),
136 Colors.yellow(song.artist_name))) 136 Colors.yellow(song.artist_name)))
137 137
138 def skip_song(self, song): 138 def skip_song(self, song):
139 if song.is_ad: 139 if song.is_ad: