jo1gi / audiobook-dl

Audiobook CLI downloader
GNU General Public License v3.0
212 stars 33 forks source link

audiobooks.com: list index out of range #10

Open JunioCalu opened 2 years ago

JunioCalu commented 2 years ago

On Manjaro Linux 21.2.1

$ audiobook-dl -c ../cookies-audiobooks-com.txt https://www.audiobooks.com/book/stream/492141
Finding compatible source Downloading metadata Downloading 0 files - Bíblia Sagrada King James Atualizada - Antig… … Traceback (most recent call last): File "/usr/bin/audiobook-dl", line 33, in sys.exit(load_entry_point('audiobook-dl==0.3.0', 'console_scripts', 'audiobook-dl')()) File "/usr/lib/python3.10/site-packages/audiobook_dl-0.3.0-py3.10.egg/audiobookdl/main.py", line 52, in run File "/usr/lib/python3.10/site-packages/audiobook_dl-0.3.0-py3.10.egg/audiobookdl/download.py", line 31, in download IndexError: list index out of range

jo1gi commented 2 years ago

I think I have fixed the problem.

JunioCalu commented 2 years ago

I think I have fixed the problem.

Thanks so much for the quick support! But the program was only able to download the first chapter of the audio book, that is, 1 hour of audio, this book is a bible, and it is 80 hours long in total. There are multiple files.

Below I leave my session cookie for you to check: cookies-www-audiobooks-com.txt

command used: audiobook-dl -c cookies-audiobooks-com.txt https://www.audiobooks.com/book/stream/492141

jo1gi commented 2 years ago

Didn't know it was possible to audiobooks with have multiple files. I only have some with single files. I will see what I can do about the problem.

jo1gi commented 2 years ago

Sorry I took so long. I'm having problems reproducing your problem. All books i have checked only consists of one file, even books that are 72 hours long. I think you are missing some cookies in the cookie file. Did you export all cookies from audiobooks.com and not just www.audiobooks.com?

JunioCalu commented 2 years ago

Desculpa por demorar tanto. Estou tendo problemas para reproduzir seu problema. Todos os livros que verifiquei consistem apenas em um arquivo, mesmo livros com 72 horas de duração. Acho que está faltando alguns cookies no arquivo de cookies. Você exportou todos os cookies audiobooks.come não apenas www.audiobooks.com?

I tested the download with cookies from audiobooks.com, www.audiobooks.com and with all the cookies available on the open book page, would you have an up-to-date cookie capture extension recommendation?

jo1gi commented 2 years ago

would you have an up-to-date cookie capture extension recommendation?

I use https://github.com/rotemdan/ExportCookies on Firefox.

JunioCalu commented 2 years ago

would you have an up-to-date cookie capture extension recommendation?

I use https://github.com/rotemdan/ExportCookies on Firefox.

I used the same