Danbooru

pixiv_ugoira_frame_data

Posted under Bugs & Features

Commit 8649ff6d removed various metadata fields, including pixiv_ugoira_frame_data.

Apparently it is possible to use the only query parameter to restore certain fields if necessary, but there doesn't seem a way to do that for pixiv_ugoira_frame_data. I've tried various ways, which all failed, and the available_includes in this commit also don't mention anything about it.

For example https://danbooru.donmai.us/posts/3788150.json?only=pixiv_ugoira_frame_data,pixiv_id only lists the Pixiv ID, even though it's an ugoira.

Updated

mikf said:

Commit 8649ff6d removed various metadata fields, including pixiv_ugoira_frame_data.

Apparently it is possible to use the only query parameter to restore certain fields if necessary, but there doesn't seem a way to do that for pixiv_ugoira_frame_data. I've tried various ways, which all failed, and the available_includes in this commit also don't mention anything about it.

For example https://danbooru.donmai.us/posts/3788150.json?only=pixiv_ugoira_frame_data,pixiv_id only lists the Pixiv ID, even though it's an ugoira.

Not all data is able to be included, which currently includes the ugoira frame data. If you need that, it's still shown in the HTML. You can access that data with the following commands in the dev console (F12).

let content_type = $("#image").data("ugoira-content-type");
let frames = $("#image").data("ugoira-frames");

Will be fixed in the next update. This was intended to be available with the only param. It was removed by default because fetching it added overhead to all API calls, even though most posts didn't have frame data and most API users didn't need it.

1