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
Thank you. For tomorrow's release, I have added a parameter to /get_files/file_metadata, 'detailed_url_information' true/false, which will add 'detailed_known_urls' to the file metadata row with a list of the same info you get from /add_urls/get_url_info. The help is updated with an example. The Client API version is now 13.
Note that the type of an url is not cached and has to be computed on the fly by consulting the current url class structure, so I believe this could add significant lag when asking about hundreds or thousands of files at once, a bit like when you right-click in the client on a huge ctrl+a file selection.
I thought about suggesting just using /add_urls/get_url_info to look up URLs as needed, but this would be annoying and inefficient to do n times for every file.
Hmm that's interesting. I didn't realize it would be inefficient like that. What would you think about allowing the get_url_info endpoint to take an array of URLs like many of the others do. Then I could just query all the URLs for a file on demand.
Currently the known URLs section of an
/get_files/file_metadata
API response looks like this:It would be nice if it could also include the URL type from the parser, eg "twitter tweet" and "booru post"
It could look like this, perhaps with different key names:
The "url type" may also be included as in
/add_urls/get_url_info
.The text was updated successfully, but these errors were encountered: