diff --git a/python_apps/media-monitor2/media/monitor/watchersyncer.py b/python_apps/media-monitor2/media/monitor/watchersyncer.py index 3ed661faf..92dcb9760 100644 --- a/python_apps/media-monitor2/media/monitor/watchersyncer.py +++ b/python_apps/media-monitor2/media/monitor/watchersyncer.py @@ -180,6 +180,8 @@ class WatchSyncer(ReportHandler,Loggable): def __del__(self): # Ideally we would like to do a little more to ensure safe shutdown - if self.events_in_queue(): self.logger.warn("Terminating with events in the queue still pending...") - if self.requests_in_queue(): self.logger.warn("Terminating with http requests still pending...") + if self.events_in_queue(): + self.logger.warn("Terminating with events still in the queue...") + if self.requests_in_queue(): + self.logger.warn("Terminating with http requests still pending...") diff --git a/python_apps/media-monitor2/media/update/replaygain.py b/python_apps/media-monitor2/media/update/replaygain.py index bcb9cf6a7..1f49fd366 100644 --- a/python_apps/media-monitor2/media/update/replaygain.py +++ b/python_apps/media-monitor2/media/update/replaygain.py @@ -22,7 +22,7 @@ def run_process(command): def get_mime_type(file_path): """ Attempts to get the mime type but will return prematurely if the process - takes longer than 5 seconds. Note that this function should only be called + takes longer than 5 seconds. Note that this function should only be called for files which do not have a mp3/ogg/flac extension. """ @@ -45,17 +45,16 @@ def duplicate_file(file_path): return fdst.name def calculate_replay_gain(file_path): - """ - This function accepts files of type mp3/ogg/flac and returns a calculated ReplayGain value in dB. - If the value cannot be calculated for some reason, then we default to 0 (Unity Gain). - + """ This function accepts files of type mp3/ogg/flac and returns a + calculated ReplayGain value in dB. If the value cannot be calculated for + some reason, then we default to 0 (Unity Gain). http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification """ try: """ Making a duplicate is required because the ReplayGain extraction utilities we use - make unwanted modifications to the file. + make unwanted modifications to the file. """ search = None