Merge pull request #2277 from evazion/ugoira-fix-model

Fix frame data records being created for non-ugoira posts.
This commit is contained in:
Albert Yi
2014-10-22 17:26:03 -07:00
3 changed files with 14 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ class PixivUgoiraService
end
def generate_resizes(source_path, output_path, preview_path)
PixivUgoiraConverter.delay(:queue => Socket.gethostname).convert(source_path, output_path, preview_path, @frame_data)
PixivUgoiraConverter.new.delay(:queue => Socket.gethostname).convert(source_path, output_path, preview_path, @frame_data)
# since the resizes will be delayed, just touch the output file so the
# file distribution wont break