Ticket #757: mediagoblin.patch

File mediagoblin.patch, 669 bytes (added by Sergio Durigan Junior, 11 years ago)

Workaround to fix the issue

  • mediagoblin/media_types/video/processing.py

    diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py
    index eb5a062..abd5f36 100644
    a b class CommonVideoProcessor(MediaProcessor):  
    266266            tmp_thumb,
    267267            thumb_size[0])
    268268
     269        # Checking if the thumbnail was correctly created.  If it was not,
     270        # then just give up.
     271        if not os.path.exists (tmp_thumb):
     272            return
     273
    269274        # Push the thumbnail to public storage
    270275        _log.debug('Saving thumbnail...')
    271276        store_public(self.entry, 'thumb', tmp_thumb,