From: Ben Sturmfels Date: Tue, 7 Apr 2020 06:35:09 +0000 (+1000) Subject: Fix Jorge's audio upload workaround in Python 3. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f1c288b1d87fed959a124816ef7a8fd40aec3dd3;p=mediagoblin.git Fix Jorge's audio upload workaround in Python 3. Unfortunately now the player isn't showing up because there's no thumbnail. --- diff --git a/mediagoblin/media_types/audio/processing.py b/mediagoblin/media_types/audio/processing.py index 19254aa8..5368c76d 100644 --- a/mediagoblin/media_types/audio/processing.py +++ b/mediagoblin/media_types/audio/processing.py @@ -175,7 +175,7 @@ class CommonAudioProcessor(MediaProcessor): except Exception as exc: _log.warn('Failed to create spectrogram: ' - + '{0}'.exc) + + '{}'.format(exc)) def generate_thumb(self, size=None): if not size: @@ -201,7 +201,7 @@ class CommonAudioProcessor(MediaProcessor): except: _log.warn('Failed to create spectrogram, using default audio image instead.') - spectrogram_filepath = 'mediagoblin/static/images/media_thumbs/audio.png' + spectrogram_filepath = 'mediagoblin/static/images/media_thumbs/video.jpg' self.thumbnailer.thumbnail_spectrogram( spectrogram_filepath,