Revert "Fix Jorge's audio upload workaround in Python 3."
authorBen Sturmfels <ben@sturm.com.au>
Tue, 28 Apr 2020 05:26:40 +0000 (15:26 +1000)
committerBen Sturmfels <ben@sturm.com.au>
Tue, 28 Apr 2020 08:23:24 +0000 (18:23 +1000)
This reverts commit f1c288b1d87fed959a124816ef7a8fd40aec3dd3.

mediagoblin/media_types/audio/processing.py

index 5368c76d7c1117943cccb1aa73de882c872def31..19254aa85ef3d36b66b52078030216f0d74e6e66 100644 (file)
@@ -175,7 +175,7 @@ class CommonAudioProcessor(MediaProcessor):
 
         except Exception as exc:
             _log.warn('Failed to create spectrogram: '
-                      + '{}'.format(exc))
+                    + '{0}'.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/video.jpg'
+            spectrogram_filepath = 'mediagoblin/static/images/media_thumbs/audio.png'
 
         self.thumbnailer.thumbnail_spectrogram(
             spectrogram_filepath,