ugoira: switch to frame delays from MediaMetadata model.

Switch the Ugoira Javascript player to using frame delays from the
MediaMetadata model instead of from the PixivUgoiraFrameData model.
After this is deployed it will be safe to remove the PixivUgoiraFrameData
model.
This commit is contained in:
evazion
2022-10-10 03:46:14 -05:00
parent 4066ee52b1
commit 32bfb84075

View File

@@ -5,7 +5,7 @@
:class => "fit-width",
:width => post.image_width,
:height => post.image_height,
"data-ugoira-frame-delays" => post.pixiv_ugoira_frame_data.frame_delays.to_json,
"data-ugoira-frame-delays" => post.media_metadata.metadata["Ugoira:FrameDelays"].to_json,
) %>
<div id="ugoira-controls">