You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can fix this by checking if json_result.illust contains meta_single_page or meta_pages fields.
If the pid correspond to an one-artwork entity, it would have data in meta_single_page but meta_pages=[].
On the other side, a multi-artwork entity would have meta_pages but no meta_single_page field at all.
An artwork page for a pid could have multiple illusts under it.
But the following only return the first image url everytime:
One can fix this by checking if
json_result.illust
containsmeta_single_page
ormeta_pages
fields.If the pid correspond to an one-artwork entity, it would have data in
meta_single_page
butmeta_pages=[]
.On the other side, a multi-artwork entity would have
meta_pages
but nometa_single_page
field at all.here's an example:
The text was updated successfully, but these errors were encountered: