Git Product home page Git Product logo

booru-mass-uploader's People

Contributors

proximanova avatar seedmanc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

booru-mass-uploader's Issues

Allow webm/mp4s

Danbooru/gelbooru supports webm/mp4s but the uploader regex prevents these files from being uploaded, and the release userscript can't easily be edited since it links back to source.

Uploader page incorrecly indicates login status with Danbooru

Apparently Danbooru only uses localstorage for login status retention and the script currently also requires a username from the cookies to consider the user as logged in. Other engines might be affected too, need to figure out how to determine the login status if localStorage only has the auth_token.

White screen

When I click on the mass upload link I just get a white screen. It worked for me before.

SSmstzo

The mass booru uploader does not work with the Draw Friends Booru since the mods put in captcha's to add images and tags recently. Is this being looked at with an update at all?

https://i.imgur.com/fSct2S1.png

Script doesn't seem to work

The script doesn't seem to work anymore. The mass upload key hasn't appeared since the update to the script 19 days ago or so.

Login problem

When I am logged in then open the mass upload link I sometimes have to refresh the page 0-2 times for it to login (at &s=mass_upload).

add tags with sidecar tag text file?

could we add tags on the upload with sidecar tag text files.
one tag per line, same name as the file itself: filename.jpg will have a filename.jpg.txt next too it for example.

something like this allows people to upload and add tags more quickly and correctly on a much larger scale.

people could export from their hydrus collection with tags for example or get tags written like that many other ways aswell.

feel this is missing, adding tags manually or even just clicking is slow.

Sidecar and upload problem

I successfully uploaded 387 images to a Danbooru website, but I had to fix like 200 or more of them since the sidecar files didn't work and none of the posts had tags. Each sidecar file looked like this:
"tag1
tag2
tag3

source:http://website.com/index.php?abc=123
"

Notice how there is a blank line before and after the source tag. It is odd because some worked (as in resulted in a post which had all of the tags from the sidecar file) and some did not (meaning the posts had no tags/only had system-added tags). This oddity happened even though they all had the same format and the correct filename in order to work.

In the log it said "[1:12] Image filename.jpeg was successfully uploaded." But when I tried to upload "filename.jpeg" without using the userscript / the normal way "filename.jpeg" uploaded there as if it hadn't been upload there before. This was the only text file I found which deviated from the norm: there was like 3 blank lines at the very top of it.

I'm not sure what is causing this, but I think it might be excessive newline characters, uploading many images at once, or communication errors.

If you have a problem like mine, please post here. Also, check your log vs. your account Upload Limit: if it says, for example, "Finished uploading; 387 uploaded ok + 41 failed = 428 images total." then the account limit from before you started uploading (initial) compared to what it is now should be initial+387.

It won't upload anything...

It won't upload anything, installed in chrome trough tampermonkey.. but it just won't work.. says error: coudn't upload on every post.

I tried logging in and out / also resetting cache and stuff but no avail.

Filenames with spaces are truncated to the last word dot extension

If you've checkmarked Set Title of each image to its original filename, this is a picture.gif becomes picture.gif in the title field.
I suspect this regex in uploader.js is to blame:
tags = fileName;
title = upOptions.title ? tags.split(/\s+/)[tags.split(/\s+/).length - 1] : '';
It's assuming "last space is delimiter to filename inside fileName" which only works if the filename has no spaces in it.
If I've read the source correctly, fileName is actually "[rating] [tags] [filename]" where an array would be safer to parse: fileInfo['rating'], fileInfo['tags'], fileInfo['filename']

Export errors to a batch command file for sorting faulty images

Added support for .bat and .sh file generation from the error log. It should produce a command file that would sort images from your upload directory into subfolders based on the error type.

Currently supported categories:

  • corrupted (includes damaged images, too big or too small pics and the ones that managed to upload but failed thumbnail generation)
  • existing
  • deleted (pics that were once uploaded but later removed, they can't be reuploaded)
  • all other errors (to separate successfully uploaded pics)

The latter also creates a log.txt that includes the error message generated for every image.

I tried to detect OS and generate shell scripts for *nix too, but I know little about them, thus it requires testing, please do.

One little thing you might wanna mention

Hi,

One thing you might wanna mention is the fact you need to be Logged in to your booru for it to work, or it will give you the error: Wrong user ID - it must be a number.

Wanted to let you know for if you decide to include a F.A.Q or help others if they wonder why it doesn't work.

I'm using it with tampermonkey in chrome, works like a charm, thank you a bazillion times for making it work so well :D

Improper line endings in .sh error log

The ."sh error log" that is generated when run on non-Windows platforms contains Windows-style line endings (\r\n) rather than Unix-style (\n). This script will not be able to be run until it is converted, either with dos2unix or manually in a text editor.

Upload failure logging

"[##:##] Couldn't upload [filename]: this image already exists."
Is not always true, sometimes the image was too small, too large, corrupt, malicious...

I would be great if the upload failure logs would also say:
"[##:##] Couldn't upload [filename]: this image does not already exists."

Mass uploader button doesn't show up on Draw Friends Booru

Hello,
I had no issues using the mass uploader recently until today where the button doesn't show up on the front page anymore. I think it may because I did a cookie wipe recently and when I try and reinstall the page just closes. Wondering if you might be able to help. It now doesn't show up on firefox/edge anymore either. Thank you.

getting a blank page instead of the mass uploader

Hi,

when loading up the mass uploader I get a blank page, don't know why, I removed and reinstalled the script in tampermonkey but still got the same issue.

catgirl.booru.org (NSFW) is my booru
and script version 1.3 with tampermonkey on chrome.

"Error: Check your posting form URL"

Just trying to upload some images to blacked.booru.org but I can't seem to do it?

Keeps saying the same thing: [5:20] Couldn't upload filename.png: error, wrong response. Check your posting form URL.
c2ec302d8e9ba9f05368d431f9279b53

Would love some clarification as to why, I also cannot for the life of me get it to use HTTP instead of HTTPS I've tried a lot of things so I hope thats not the issue...

*.booru.org also requires https now

as the title says, script needs update adding https:/ in front of the include for .booru.org/index.php

just wanted to let ya know, for once i could figure it out myself and apply fixes

Storing the URL of uploaded images

Is it possible to access the unique URL of each images uploaded? I'm using my booru for image hosting and want to keep track of where each image is stored

not able to upload properly on moeboard software

uploader.js:321 Refused to set unsafe header "Content-Length"SendFile.reader.onloadend @ uploader.js:321 uploader.js:9 POST http://reacted.example/post/create.json 413 (Request Entity Too Large)XMLHttpRequest.sendAsBinary @ uploader.js:9SendFile.reader.onloadend @ uploader.js:322 VM805:1 Uncaught SyntaxError: Unexpected token <SendFile.xhr.onreadystatechange @ uploader.js:284
this appears to happen be it choosing folder or files, and also stops when a dupe is trying to upload to the server

Use "Tag list (separate with spaces)" along with "use sidecar files as sources of tags for each image"

If you select "Ignore filenames, use sidecar files as sources of tags for each image" then the "Tag list (separate with spaces)" text entry rectangle becomes greyed out. I could solve this by editing the hundreds sidecar text files I have to have more of the tags that I want, but it would be easier if I could select "Ignore filenames, use sidecar files as sources of tags for each image" and type in text for "Tag list". The software is great so far, so if you do update it to have this enhancement please don't break anything! :)

Drawfriends Booru-mass-uploader does not install on new Firefox 57 or upload with files on Chrome

Hello,

I noticed after the update for Firefox 57 that the Booru-mass-uploader hasn't worked. When I try and install it through Firefox now it says the .js is corrupt. I know 57 just came out recently, but is there a workaround currently? Or am I doing something wrong.

Also,

Chrome won't let me mass upload any photos, don't know if it's a booru problem or a problem with the uploader, just wanted to make you aware. Any input you have is greatly appreciated. Thanks.

Sidecar files don't work at Danbooru website. Mass uploader opened in new tab = fail

Using Firefox for all of the following

As of this revision: #30 (comment) plus line 372 to line 445 changes AND at least one older revision:
. Sidecar files don't work at a Danbooru website, see:
.. #29
.. #30

As of this revision: #30 (comment) plus line 372 to line 445 changes:
. If you are using a Danbooru website and click the mass upload link so that it opens in a new tab, one of two things will happen:
.. The page will only say "not found"
.. The mass uploader page will load but when you try to upload anything you will get this--"Couldn't upload examplefilename.jpeg: error, access denied. Try logging in. Stopped."--the only way to get it working again is open the websites homepage in a new tab then click mass upload so it opens in the tab you are on.

Statistics collection

I've been thinking about adding a feature that would allow collecting of anonymous statistics about script's usage, such as booru urls that the script it being used at or other stuff, kinda like Google Analytics does. I'm not sure I'd be able to apply GA itself though, seeing how it's usually tied to a fixed site URL, not the case with userscripts.

I'm pretty curious about statistics everywhere, and given that this is pretty much my most used project to date, it is tempting to do it here.

However I know that among folks using boorus and other sites of this topic privacy is a big concern so perhaps they will be against that, even though I mean no harm.

option for folder upload

i'm wanting to upload my entire folder ( which is ~30k images) to a booru.org booru, and i keep crashing trying to select all of the images, so is it possible to just for you to select a folder and it upload all of its content? i also find it ironic that even though this is a "mass uploader", it can't handle... well mass uploading haha

Newbie to coding: How do I actually instal and use it?

Could someone walk me, and any other reader, through how to instal the code into your CSS page, as well as to where the button and other things pop up for use on the booru.

I'll be trying to mess with this until something works.

Ty in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.