hide ugoira preview/video link if it hasn't finished processing

This commit is contained in:
r888888888
2014-10-28 11:30:02 -07:00
parent 94fd03f5d0
commit 3aa0ee2a75
4 changed files with 17 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ class PixivUgoiraService
def generate_resizes(source_path, output_path, preview_path, delay = true)
# Run this a bit in the future to give the upload process time to move the file
if delay
PixivUgoiraConverter.delay(:queue => Socket.gethostname, :run_at => 2.seconds.from_now).convert(source_path, output_path, preview_path, @frame_data)
PixivUgoiraConverter.delay(:queue => Socket.gethostname, :run_at => 2.seconds.from_now, :priority => -1).convert(source_path, output_path, preview_path, @frame_data)
else
PixivUgoiraConverter.convert(source_path, output_path, preview_path, @frame_data)
end