FurryCoders / FALocalRepo

Pure Python program to download submissions, journals, and user folders from the FurAffinity forum in an easily handled database.
European Union Public License 1.2
21 stars 2 forks source link

[Bug]: Cookie values aren't being accepted #6

Closed Crossoverfan96 closed 2 years ago

Crossoverfan96 commented 2 years ago

Version

Latest

What happened?

Screenshot 2022-06-10 1 03 34 AM I was attempting to put in my cookie values to download a gallery and it just ain't accepting the command.I'm not sure if I put it in wrong or what but it ain't going through

How to reproduce the bug?

attempt to put in cookies as shown in the readme

Relevant log output

No response

MatteoCampinoti94 commented 2 years ago

That is very weird, it's working without problems on my machine. What shell are you using?

Try wrapping the two --cookie arguments in quotes (i.e., --cookie "a" "abcd-1234-efgh"). It may be the shell messing with the arguments because there are dashes in them, though it seems unlikely.

PS: the FALOCALREPO_DEBUG flag was disabled with version 4, the log is printed automatically for every exception that isn't related to argument parsing because that is handled by click, or it should be at least.

Crossoverfan96 commented 2 years ago

I'm using bash on debian

Crossoverfan96 commented 2 years ago

I tried putting the arguments in quotes with no result Screenshot 2022-06-10 1 51 28 AM t

MatteoCampinoti94 commented 2 years ago

I really have no clue what the problem could be.

In the meantime, you can run the program from a Python interpreter:

from falocalrepo.console import app

app.main(["config", "cookies", "--cookie", "a", "abcd-1234-efgh", "--cookie", "b", "abcd-1234-efgh"], standalone_mode=False)

Or:

from falocalrepo.console import app

app.main("config cookies --cookie a abcd-1234-efgh --cookie b abcd-1234-efgh".split(" "), standalone_mode=False)

The standalone_mode argument makes sure it won't close the Python interpreter.

MatteoCampinoti94 commented 2 years ago

Just as an experiment, could you try running this short script as a Python file with the exact same arguments you were using for falocalrepo?

from sys import argv

print(argv)

Just to make sure that the argument array is correct since click uses it in background.

MatteoCampinoti94 commented 2 years ago

Hey, did running the program in the interpreter work? And the argv test? :)

MatteoCampinoti94 commented 2 years ago

I'm closing this issues has there has been no update and the error could not be reproduced.

If there is any new information, add a comment and I will investigate it further :)