Closed lordkitsuna closed 4 years ago
First off, I would like to say not to worry about the warnings, the deprecated items aren't actually used in the running code. All of it is dead code now. I had to do this to get this build functioning as quickly as possible.
With your error stating it couldn't Deserialize to entry!
That means there is a request for something specific that was incorrect. From the way it looks, the program was unable to authorize and login to your account for e621. I would highly recommend deleting your already existing one and letting the program create the new login file. The reason I say this is because the program renamed PasswordHash
to APIKey
, and then added a new field for you to enter your user ID, the one for your account on e621. If you need help finding it, it's the numbers at the end of the URL for your main profile (e.g https://e621.net/users/269797
, my ID is 269797
). This should fix your issue, but I'll take a deeper look into it, give me an update if this doesn't work.
If I remember too, I didn't add any safeguard against this new blacklist, pretty much enforcing the use of the blacklist, I'll fix this in the next build.
oh, i had not used the login before is that required now? not a big deal i just didn't think to set that up i had never used it before lol Thanks for pointing it out. This was a clean download from the git after deleting the old so nothing old was around. after deleting the blank file so it could remake then adding my login details i get the new error of "thread 'main' panicked at 'User isn't logged in!', src/e621/mod.rs:77:30" i have verified the details are correct in the file. do i need to perhaps remove the " " ? i left them in place as thats not uncommon with login details in a conf
Okay, so I pushed a new commit that should fix this issue. It's nothing too much added, just an if statement that actually checks and verifies the user has login credentials for the blacklist. If the login is empty, it won't enforce it. There is something else to note, if the user isn't logged in, the e621 server now has a global filter that will blacklist posts. This filter has a blacklist of sorts with this entry only: young -rating:s
. If there are any posts that match this filter, it will nullify the URL for the image and make it impossible to grab or download. So if you go for content along those lines, then logging in is required. Beyond that, you can still use my program logged out without any problem. Hopefully, this fixes your issue.
logging in would be nice for having my own blacklist lol. i am still getting 'User isn't logged in!', src/e621/mod.rs:77:30 when i use my credentials. I have double checked they are all correct i even use this api key for a mobile app so i know that much is correct. It does however now work fine when the login file is left blank
Send me your login.json file with the APIKey left blank. I'll take a look and see what's wrong.
Sure here it is as a file just to ensure all formatting preserved login.zip
{
"Username": "LordKitsuna",
"APIKey": "",
"UserID": "132970",
"DownloadFavorites": false
}
and here is just a paste
I would say for you to give me your APIKey, so I can send a manual request and see what's going on. But I can't do that privately on Github. The current issue seems to be that the program can't get your blacklist string. When it tries to use the blacklist, it will send a request for your account with your username and API key. This should show me your blacklist, but that doesn't seem to be the case. I'll look into it and see what I can find. This is still an indev build after all, there are bound to be a few of these sneaky bugs.
Feel free to add me on discord, same name i can use that to send api key and just delete it when you are done testing
Actually i just solved this one, i realized my blacklist was all on my app and didnt actually reflect on my e621 account. On my account it was blank. after copying my blacklist to the site itself the program works fine. So it seems its issue is with blank blacklists
Updated the code so now the program will ignore empty blacklists. This should fix the issue.
Hi there, glad to see this update. I seem to be having issues with the latest version. during build i get warnings.
But it does seem to finish, however when i then run the program
Running the backtrace shows