Comments (11)
Hey there! Thanks for the report :)
While I've fixed the cause of this particular error for now in develop
(docker image should be done building pretty soon in the packages section), ultimately login via web is very much not where I want it to be. I plan on building the captcha and OTP into the auth page, but hadn't prioritized it till now: #11
You can try the fix now and see if it get's everything setup. If it does not, I've also added the ability to login easily from the terminal tool:
- First, get into the container's shell (unraid has a gui option for this by clicking on the running container).
m4b-merge --login
from bragibooks.
Now it's got another error:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/home/app/webapp/importer/views.py", line 33, in post
aud_reg.register()
File "/usr/local/lib/python3.8/site-packages/m4b_merge/audible_helper.py", line 37, in register
auth = audible.Authenticator.from_login(
File "/usr/local/lib/python3.8/site-packages/audible/auth.py", line 357, in from_login
auth.re_login(
File "/usr/local/lib/python3.8/site-packages/audible/auth.py", line 583, in re_login
login_device = login(
File "/usr/local/lib/python3.8/site-packages/audible/login.py", line 318, in login
guess = default_captcha_callback(captcha_url)
File "/usr/local/lib/python3.8/site-packages/audible/login.py", line 36, in default_captcha_callback
guess = input("Answer for CAPTCHA: ")
EOFError: EOF when reading a line
display-im6.q16: unable to open X server `' @ error/display.c/DisplayImageCommand/433.
As for logging in through the terminal, Ive tried a variety of options, and none go through. Most come back with 'error: unrecognized arguments: --login'
Ive tried various adaptations of it:
- m4b-merge --login : 'error: the following arguments are required: -i/--inputs'
- m4b-merge --login --inputs "email" "pwd" : 'error: unrecognized arguments: --login'
- m4b-merge -i "email" -i "pwd" --login : m4b-merge: error: argument -i/--inputs: expected at least one argument
etc.
from bragibooks.
It looks like you didn't get the m4b-merge
update. Run this and then try m4b-merge --login
again:
pip install --no-cache-dir --force https://codeload.github.com/djdembeck/m4b-merge/zip/refs/heads/develop
from bragibooks.
I ran the command, and it pulled, built, and downloaded all of the packages related, and then it still refused to work. Getting a similar problem with asking for inputs when I only run 'm4b-merge', and telling me '--login unrecognized' when I run 'm4b-merge' with -i parameters.
I did run the command from the root directory of the container, so I tried to 'find . | grep m4b', and it didn't return any results in the container.
from bragibooks.
I'm so sorry, I meant for the command to use develop
, not main
. I edited the above command now if you can please try it again :)
from bragibooks.
Ah, that did it - Now its morphed into a captcha problem :P
Answer for CAPTCHA: display-im6.q16: unable to open X server
' @ error/display.c/DisplayImageCommand/433.`
Could another port need to be added in Docker for this?
from bragibooks.
That's now the issue I need to add a feature for (which I will when I get some time).
In the meantime, you can try installing m4b-merge on your local PC and running m4b-merge --login
. Then you can copy .aud_auth.txt
to your docker config folder for Bragi Books.
.aud_auth.txt
will be stored in:
Mac OS X: ~/Library/Preferences/
Unix: ~/.config/ # or in $XDG_CONFIG_HOME, if defined
Win: C:\Users<username>\AppData\Local<AppAuthor><AppName>
Though, I've never explicitly runm4b-merge
on other platforms besides Linux
The docker expects the file at /config/.aud_auth.txt
, however you map that is up to you.
from bragibooks.
Just an update on this, I have an OTP method written for the browser, and am working on Captcha over the weekend
from bragibooks.
Hey @HStep20, when you get the chance, can you try the latest develop
image? I couldn't find a satisfactory fix for full-browser sign in, so I wrote a workaround. Essentially a fixed up m4b-merge --login
, which addresses your previous issue with not displaying due to the X server not being connected. The authenticate page should walk you through the steps, which are as I outlined above :)
Hoping to get you up and running now!
from bragibooks.
Ran it, Went through the process, approved the email, hit enter, and got this:
Traceback (most recent call last):
File "/usr/local/bin/m4b-merge", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/m4b_merge/__main__.py", line 64, in main
run_auth = aud.handle_auth()
File "/usr/local/lib/python3.8/site-packages/m4b_merge/audible_helper.py", line 19, in handle_auth
self.register()
File "/usr/local/lib/python3.8/site-packages/m4b_merge/audible_helper.py", line 40, in register
auth = audible.Authenticator.from_login(
File "/usr/local/lib/python3.8/site-packages/audible/auth.py", line 357, in from_login
auth.re_login(
File "/usr/local/lib/python3.8/site-packages/audible/auth.py", line 583, in re_login
login_device = login(
File "/usr/local/lib/python3.8/site-packages/audible/login.py", line 387, in login
url = login_soup.find_all("a", class_="a-link-normal")[1]["href"]
IndexError: list index out of range
from bragibooks.
I am happy to say that this PR, #45, will remove the need to login into audible :) This issue will be closed upon it being merged to main.
from bragibooks.
Related Issues (20)
- Bug: Completed books are not moved to done folder
- Enhancement: Add count on tabs in books page
- Bug: Submit ASIN button sometimes stuck on disabled HOT 1
- Add detailed progress the processing tab
- sqlite3.OperationalError: attempt to write a readonly database HOT 2
- clear processing queue on container shut down
- JSONDecodeError HOT 2
- Books in Audible (US) not being found
- Chapters not being added? HOT 2
- Hidden files causing program to stop processing files
- Operation not permitted
- Description is being cut off.
- Search isn't working it just spins forever
- Allow manual entry when a match is not automatically found
- Feature request: Specify input and output files by ENV
- New install with UID/GID set cannot access own database or secret key
- Add Chapters to books using AudNexus
- Still actively worked on?
- Multiple Problems with merging process
- bug/enhancement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bragibooks.