[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/hydrus/ - Hydrus Network

Bug reports, feature requests, and other discussion for the hydrus network.

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


New user? Start here ---> http://hydrusnetwork.github.io/hydrus/

Currently prioritising: simple IPFS plugin


File: 1454040568237.jpg (135.42 KB, 1510x594, 755:297, aaaaa.jpg)

 No.1914

Here's something I did to make copying individual booru tags easier. hydrus is good with booru browser but its page downloader doesn't read tags. And sometimes you just wanna quickly add tags to an individual image.

So this tamper/greasemonkey script will add a button and a key bind to booru posts and the Illustration2Vec demo site to copy all tags on the page including their schemas and rating. Then you can just right click your image in hydrus > manage file tags > paste tags > apply. The whole process takes about 5 seconds.

github.com/JetBoom/boorutagparser

 No.1916

Nice, is there a list of which boorus are supported, or does it just work for all?


 No.1917

>>1916

It works on a "catch-all with exceptions" basis. So any site that matches *booru.*/ will work. Sites with weird names like rule34.xxx are manually added to the @include list.

Also, different boorus use different css so I need to add new selectors if some booru doesn't work. Most do work though because most use the same css as gelbooru or booru.org or danbooru. The script auto-updates from github so if something doesn't work, make an issue/pull request and I'll make it work for that site without you having to do anything.


 No.1918

Illustration2Vec(neural network) is nice concept in theory, but it's still too young for me to consider full deployment. However I could still potentially have uses for it. Is it possible to make the script only copy tags that have a confidence rating of 70% or above? It's just i'd rather have no tags than incorrect ones


 No.1919

>>1918

I have it set to 20%. You can change it on line 32.

var iv2_confidence_rating = 70.0;

I'm gonna just put in an options menu or something soon.


 No.1936

Sankaku has some images the others don't, but the script doesn't work on it.


 No.1938

File: 1454199814575.png (528.75 KB, 497x732, 497:732, 34c89377bd7a6e0712a2b80c7d….png)

>>1936

Update 1.0.4: All sites and their tag schemas on the hydrus booru list now work.


 No.1939

>>1938

1.0.5: added options menu for iv2 confidence rating and copy sound url.


 No.1942

>>1938

Thanks.


 No.1943

Does anyone know of an option somewhere to automatically add the preferred tag instead of spawning dialogs when pasting multiple tags, by the way?


 No.1951

File: 1454413579761.jpg (188.76 KB, 1529x658, 1529:658, 106.jpg)

I put in nhentai for 1.0.6. They have a nice json page so it also works when viewing individual images.


 No.2170

File: 1456819595673.jpg (221.05 KB, 1221x797, 1221:797, boorutagparser-server.jpg)

1.1.0 is here with a real nifty feature: the ability to download an image and its tags to a bulk import folder. So you can now press a button (or a hotkey, I set it to backslash by default) and it will download the full-size image and its tags to your disk. Then you can just drag the entire folder on to hydrus and it will import every image and their tags at one time. It saves A LOT of time so instead of 5 seconds per image wasted it's more like 5 seconds total at the end of your browsing session.

This utilizes the new r194 ability to parse image.jpg.txt files. The feature requires a separate sort of daemon server to be ran in the background made in node.js (web addons have real limited access to your disk). There's instructions that even a retard can understand if you want to get that working.

https://github.com/JetBoom/boorutagparser

https://github.com/JetBoom/boorutagparser-server


 No.2183

>>2170

Holy shit bro, you are a lifesaver. Before this, my process of downloading an individual image involved getting its md5 and then searching "md5:<hash>" on hydrus's downloads page.


 No.2193

>>2183

And I just realized that Hydrus' automatic import folders doesn't yet support txt file imports.

I'll need to either figure out a quick way to export the images with their md5 filenames, or just redownload everything.


 No.2214

>>2170

So, im too retarded to map the shortcut properly because of problems with the different layout.

Is it possible to change the key?


 No.2228

>>2214

Holy shit, im really retarded. i just had to look into the script.


 No.2246

>>2170

Great tool! Thank for supporting paheal as well, however "download with tags" doesn't work there because the doDownload function isn't able to find the link to the image.

In case anyone is interested in a fix, with my very limited coding knowledge I managed to do it.

I added this line, directly under the first query in the doDownload function:

if (!a) var a = document.querySelector('img[src*="/_images/"]');


 No.2248

I don't suppose there's a way to shortcut "paste tags" and "accept" to get this down to keystrokes only essentially? Otherwise, I'll just make an AHK script and do it a dirty way.


 No.2249

>>2248

Use the server he links to download the image and its tags in in a .txt file. Setup the import folder as an import folder in hydrus. Then you can avoid having to manage tags within hydrus itself, for the most part


 No.2250

>>1914

Ever thought about using pm2 to have the server run in the background instead of a constantly-open command window?


 No.2257

>>2249

Nifty, but I needed what I mentioned for existing files in Hydrus that were untagged. The way I'm doing it now is reverse image searching and AHKing the tags in, the server method would create duplicates.


 No.2261

The "download with tags" button doesn't work on some boorus (http://vidyart.booru.org/ as an example). I think it's because they don't have a download button and just post the original file.


 No.2273

>>2246

>>2261

Fixed these in 1.1.2


 No.2276

>>2273

Thanks for the fix!


 No.2322

File: 1458879933851.png (31.42 KB, 134x127, 134:127, face.png)

( ˇωˇっ)3


 No.2323

File: 1458886226733.gif (2 MB, 500x578, 250:289, 1440819090172-tech.gif)

>>2170

Do you know how I might go about getting boorutagparser-server running in Arch?


 No.2324

File: 1458888809809.png (453.15 KB, 700x940, 35:47, db57a2386108cd7634c29bb17b….png)

>>2323

# pacman -S npm
$ npm install boorutagparser-server
$ node node_modules/boorutagparser-server

This will install boorutagparser-server in the present working directory into a folder named node_modules along with all it dependencies hence the final command. There's probably a way to add node_modules to path or something but I'm not familiar enough with node.


 No.2325

File: 1458953000441.png (139.33 KB, 518x632, 259:316, 1458296718827-1.png)

>>2324

Thanks.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]