Danbooru

Would it be possible to add Ratings on the filenames when saving images

Posted under General

Good day everyone.

First off, I've been a lurker here in Danbooru since 2014 and have been saving images as a hobby of sorts. I have accumulated nearly 300k images. After downloading them, I would sift through them and categorize as safe or NSFW. But it isn't as easy as it sounds since I have to visually inspect them, sometimes even mistaking them. Eventually I just stopped bothering with it and just put them in a single folder labeled "Pictures".

Hence my title, would it be possible to add this feature? I still would like to categorize my stuff easily and not have them cluttering in a single folder.

Updated

kittey said:

You could write a small script to rename the files appropriately. If you still have the MD5 hash in the filename, you can easily query the API to get the rating, like so:
/posts.xml?only=rating&tags=md5:93e6d0d665c373bd6c5c9df8088b501e

Forgive my ignorance but, how and where do I apply this? Fortunately, I don't rename the filenames when I save them so I still have the hashes attached.

By script, you mean I should put this in tampermonkey, etc? Or do I have to use a separate program like a renaming application?

You would need to program that yourself in a programming language of your choice or ask a friend to do it for you.

I think it’s unlikely that the rating will be added to filenames on Danbooru since we can’t cater to everyone’s wishes. The tags are in there probably for SEO reasons. If you have any specific needs beyond that, that’s what the API is there for.

Edit: I stand corrected.

Updated

Just for the record, there's issue #4269 open on Github. It's possible to allow custom filenames in theory but it'd have to be coded in first, so it's a matter on when evazion or someone else will get around to it.

nonamethanks said:

Just for the record, there's issue #4269 open on Github. It's possible to allow custom filenames in theory but it'd have to be coded in first, so it's a matter on when evazion or someone else will get around to it.

Ah, then all I can do is wait and hope it will be implemented. Also thanks for the help kittey, but after reading through the link you posted, I decided leave things as is. I think I got lost when I read the first string of code there.

  • 1