Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support French Nextory #72

Open
Speedmod88 opened this issue Dec 3, 2023 · 14 comments
Open

Support French Nextory #72

Speedmod88 opened this issue Dec 3, 2023 · 14 comments
Labels
enhancement New feature or request help wanted Extra attention is needed source

Comments

@Speedmod88
Copy link

Speedmod88 commented Dec 3, 2023

Installation method:
pip install "git+https://github.com/jo1gi/audiobook-dl.git"

Version:
Python 3.10.12
audiobook-dl 0.7.1

Describe the bug

first time using your audiobook-dl and seem it doesnt want to login to my nextory account

here the DEBUG traceback

DEBUG audiobook-dl 0.7.1
DEBUG python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
 INFO Finding compatible source
 INFO Authenticating with nextory
DEBUG Logging in
DEBUG device_id='ad1b13b4-4b8f-31ac-ae9d-1778230b73b6'
Traceback (most recent call last):
  File "/home/drftpd/venv/bin/audiobook-dl", line 8, in <module>
    sys.exit(main())
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 31, in main
    process_url(url, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 51, in process_url
    authenticate(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 134, in authenticate
    login(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 115, in login
    source.login(url, **login_data)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/source/__init__.py", line 86, in login
    self._login(url, **kwargs)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/nextory.py", line 62, in _login
    login_token = session_response["login_token"]
KeyError: 'login_token'

is me who did something wrong?

Command output

audiobook-dl -d --username [email protected] --password password --combine --output-format mp3 --output /Audiobooks/{author}/{series}/{title}/ https://nextory.com/fr/catalog/books/1579353

Thanks for your Help

@Speedmod88 Speedmod88 added the bug Something isn't working label Dec 3, 2023
@jo1gi jo1gi added the source label Dec 8, 2023
@jo1gi
Copy link
Owner

jo1gi commented Dec 10, 2023

No, you didn't do anything wrong. Nextory had just made an update that made audiobook-dl not work. Should be fixed not in f8d6a75. Hope it works.

@Speedmod88
Copy link
Author

Speedmod88 commented Dec 10, 2023

Hi, not sure how I need to do to update it in pip venv

I did

python3 -m venv venv
source venv/bin/activate
pip install "git+https://github.com/jo1gi/audiobook-dl.git"
Collecting git+https://github.com/jo1gi/audiobook-dl.git
  Cloning https://github.com/jo1gi/audiobook-dl.git to /tmp/pip-req-build-bn8fp1                                                                                                                                                             x2
  Running command git clone --filter=blob:none --quiet https://github.com/jo1gi/                                                                                                                                                             audiobook-dl.git /tmp/pip-req-build-bn8fp1x2
  Resolved https://github.com/jo1gi/audiobook-dl.git to commit f8d6a756c7a4626bf                                                                                                                                                             3ab87927a3e19cace31c82e
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: m3u8 in ./venv/lib/python3.10/site-packages (from                                                                                                                                                              audiobook-dl==0.7.1) (3.6.0)
Requirement already satisfied: appdirs in ./venv/lib/python3.10/site-packages (f                                                                                                                                                             rom audiobook-dl==0.7.1) (1.4.4)
Requirement already satisfied: mutagen in ./venv/lib/python3.10/site-packages (f                                                                                                                                                             rom audiobook-dl==0.7.1) (1.47.0)
Requirement already satisfied: rich in ./venv/lib/python3.10/site-packages (from                                                                                                                                                              audiobook-dl==0.7.1) (13.7.0)
Requirement already satisfied: lxml in ./venv/lib/python3.10/site-packages (from                                                                                                                                                              audiobook-dl==0.7.1) (4.9.3)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (                                                                                                                                                             from audiobook-dl==0.7.1) (2.31.0)
Requirement already satisfied: cssselect in ./venv/lib/python3.10/site-packages                                                                                                                                                              (from audiobook-dl==0.7.1) (1.2.0)
Requirement already satisfied: attrs in ./venv/lib/python3.10/site-packages (fro                                                                                                                                                             m audiobook-dl==0.7.1) (23.1.0)
Requirement already satisfied: tomli in ./venv/lib/python3.10/site-packages (fro                                                                                                                                                             m audiobook-dl==0.7.1) (2.0.1)
Requirement already satisfied: pillow in ./venv/lib/python3.10/site-packages (fr                                                                                                                                                             om audiobook-dl==0.7.1) (10.1.0)
Requirement already satisfied: pycryptodome in ./venv/lib/python3.10/site-packag                                                                                                                                                             es (from audiobook-dl==0.7.1) (3.19.0)
Requirement already satisfied: importlib-resources in ./venv/lib/python3.10/site                                                                                                                                                             -packages (from audiobook-dl==0.7.1) (6.1.1)
Requirement already satisfied: iso8601 in ./venv/lib/python3.10/site-packages (f                                                                                                                                                             rom m3u8->audiobook-dl==0.7.1) (2.1.0)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packag                                                                                                                                                             es (from requests->audiobook-dl==0.7.1) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-                                                                                                                                                             packages (from requests->audiobook-dl==0.7.1) (2023.11.17)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10                                                                                                                                                             /site-packages (from requests->audiobook-dl==0.7.1) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.10/site-                                                                                                                                                             packages (from requests->audiobook-dl==0.7.1) (2.1.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in ./venv/lib/python3.10/si                                                                                                                                                             te-packages (from rich->audiobook-dl==0.7.1) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./venv/lib/python3.10/                                                                                                                                                             site-packages (from rich->audiobook-dl==0.7.1) (2.17.2)
Requirement already satisfied: mdurl~=0.1 in ./venv/lib/python3.10/site-packages                                                                                                                                                              (from markdown-it-py>=2.2.0->rich->audiobook-dl==0.7.1) (0.1.2)

and I still have the same issue.... still not working :(

@jo1gi
Copy link
Owner

jo1gi commented Dec 10, 2023

Can you send the command ouput with --debug?

@Speedmod88
Copy link
Author

DEBUG audiobook-dl 0.7.1
DEBUG python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
 INFO Finding compatible source
 INFO Authenticating with nextory
DEBUG Logging in
DEBUG device_id='ad1b13b4-4b8f-31ac-ae9d-1778230b73b6'
Traceback (most recent call last):
  File "/home/drftpd/venv/bin/audiobook-dl", line 8, in <module>
    sys.exit(main())
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 31, in main
    process_url(url, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 51, in process_url
    authenticate(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 134, in authenticate
    login(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 115, in login
    source.login(url, **login_data)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/source/__init__.py", line 86, in login
    self._login(url, **kwargs)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/nextory.py", line 62, in _login
    login_token = session_response["login_token"]
KeyError: 'login_token'

@jo1gi
Copy link
Owner

jo1gi commented Dec 11, 2023

It looks like audiobook-dlhasn't been updated properly. Maybe try pip install --upgrade "git+https://github.com/jo1gi/audiobook-dl.git"?

@Speedmod88
Copy link
Author

Speedmod88 commented Dec 11, 2023

not sure why but pip install --upgrade "git+https://github.com/jo1gi/audiobook-dl.git" didnt worked

so I reinstalled the whole thing with pip uninstall and than pip install

now I got this error :

DEBUG audiobook-dl 0.7.1
DEBUG python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
 INFO Finding compatible source
 INFO Authenticating with nextory
DEBUG Logging in
DEBUG device_id='ad1b13b4-4b8f-31ac-ae9d-1778230b73b6'
DEBUG session_response={'error': {'code': 3009, 'key': 'UserNotFound', 'description': "Account doesn't exists with input identifier", 'message': 'The password entered is incorrect. Try again.'}}
Traceback (most recent call last):
  File "/home/drftpd/venv/bin/audiobook-dl", line 8, in <module>
    sys.exit(main())
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 31, in main
    process_url(url, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 51, in process_url
    authenticate(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 134, in authenticate
    login(url, source, options, config)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/__main__.py", line 115, in login
    source.login(url, **login_data)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/source/__init__.py", line 86, in login
    self._login(url, **kwargs)
  File "/home/drftpd/venv/lib/python3.10/site-packages/audiobookdl/sources/nextory.py", line 63, in _login
    login_token = session_response["login_token"]
KeyError: 'login_token'

that's weird because my password are correct....

I can login in the website with the same username and password I pasted there --username --password

@jo1gi
Copy link
Owner

jo1gi commented Dec 11, 2023

I'm not sure whats wrong. Would you be willing to lend me your account for testing?

@Speedmod88
Copy link
Author

sure, how I can transmit you the account info?

@jo1gi
Copy link
Owner

jo1gi commented Dec 11, 2023

Send it to [email protected]?

@Speedmod88
Copy link
Author

ok sent

@jo1gi
Copy link
Owner

jo1gi commented Dec 13, 2023

I have figured out why it didn't work. French Nextory functions as a separate platform, with different login and api endpoints.

@Speedmod88
Copy link
Author

ah that's why... :( do you think you can add it?

@jo1gi
Copy link
Owner

jo1gi commented Dec 15, 2023

Potentially, but it will take some time.

@Speedmod88
Copy link
Author

I am ready to wait, thanks a lot :)

@jo1gi jo1gi changed the title Nextory login issue Support French Nextory Dec 17, 2023
@jo1gi jo1gi added enhancement New feature or request help wanted Extra attention is needed and removed bug Something isn't working labels Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed source
Projects
None yet
Development

No branches or pull requests

2 participants