]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed some code style and comment
authorkaliko <kaliko@azylum.org>
Wed, 16 Dec 2020 13:34:23 +0000 (14:34 +0100)
committerkaliko <kaliko@azylum.org>
Wed, 16 Dec 2020 13:34:23 +0000 (14:34 +0100)
sima/lib/webserv.py
sima/mpdclient.py
sima/plugins/internal/crop.py

index 35835c31b08d1a4fbd25bb7a0beddb80f3adf1ce..c6a906fce7f5a92091f426a18f266856e6d04d42 100644 (file)
@@ -253,7 +253,7 @@ class WebService(Plugin):
             return []
         tolookfor = self.player.playlist[-1].Artist
         self.log.info('Looking for artist similar to "%s"', tolookfor)
-        self.log.debug(repr(tolookfor))
+        self.log.debug('%r', tolookfor)
         similar = self.ws_similar_artists(tolookfor)
         if not similar:
             self.log.info('Got nothing from %s!', self.ws.name)
index 0d0ff1e4d4ddd2d87651e84cfc5b1969248dc555..0c2e0b2223c8b59d59108eda4e3c40c3a5ee7bab 100644 (file)
@@ -33,7 +33,7 @@ from .utils.leven import levenshtein_ratio
 
 
 class PlayerError(Exception):
-    """Fatal error in poller."""
+    """Fatal error in the player."""
 
 
 # Some decorators
index 3f987ce7482190941e4c199a1fa9eb6f28e88a9a..8f70acd7caf42d703bf75b6feeb339404dd37757 100644 (file)
 """
 
 # standard library import
-#from select import select
 
 # third parties components
 
 # local import
 from ...lib.plugin import Plugin
 
+
 class Crop(Plugin):
     """
     Crop playlist on next track
@@ -57,7 +57,7 @@ class Crop(Plugin):
             return
         if not self.daemon.enabled:
             self.log.debug('Queueing disabled, not cropping')
-            return False
+            return
         player = self.daemon.player
         if player.currentsong().pos > self.target:
             self.log.debug('cropping playlist')