DobyTang / LazyLibrarian

This project isn't finished yet. Goal is to create a SickBeard, CouchPotato, Headphones-like application for ebooks. Headphones is used as a base, so there are still a lot of references to it.
732 stars 71 forks source link

Can not download audiobook and ebook for the same book #1591

Closed Piottreck closed 5 years ago

Piottreck commented 6 years ago

If I just set it do audiobook or ebook it works perfectly fine but if i select both only one the ebook is downloaded. The status of the missing audiobook is "wanted".

48c38aec541726d21b6a7f25973bbc15d5a561be

linux

bookstrap

Goodreads

git

Since I do not get any error which I could reproduce i think the log does not really help.

philborman commented 6 years ago

This might actually be right, can't be sure. If the status of the audiobook is "wanted" it should get searched for on the next scheduled scan. Does it show as "wanted" in the manage audiobooks page? In config there is a "job status" button that tells you how many items are marked "wanted" and when the next book search will run. The book search does audio and ebook, but maybe the audiobook couldn't be found? A debug log would definitely help, should see lines saying the title being looked for and also whether audio or ebook and where we tried to find it.

Piottreck commented 6 years ago

Well the problem is that the audiobook is found and downloaded when i do not select the ebook. And the audiobook is "snatched" and not "wanted" as i mistakenly stated before! sorry for that

I created the log with "Start debug log" and then pressed

philborman commented 6 years ago

ok, the log shows we are Looking for AudioBook J K Rowling Harry Potter The Sorcerers Stone txt in /mnt/nextcloud/Library/books/downloads but in that folder there are no audiobooks. The problem seems to be we are sending the audiobook request to "direct" which is libgen, and libgen sends us txt, azw, pdf. Libgen often puts the filetypes in the title so if you add txt, azw, pdf to your AudioBook Reject List in lazylibrarian config we will know the files are not audiobook and not try to download them.

Piottreck commented 6 years ago

I only have "epub, mobi" in the audiobook reject list and that would also not explain why it works as soon as I remove the ebook. The status of the audiobook changed back to "wanted" by the way. I think thats also the reason why I initially stated that the status of the missing audiobook is "wanted"... debug.txt

philborman commented 6 years ago

In the latest log, around 2018-10-06 16:27:10 the audiobook "J K Rowling Harry Potter The Sorcerers Stone txt" gets sent to libgen. LazyLibrarian rejected epub and mobi versions as per the audiobook reject list. It's not an audiobook, but we don't know that until the file is downloaded and the "magic" library tells us it's ASCII text. The postprocessor runs at 2018-10-06 16:30:41 but fails to find an audiobook, so after the timeout (previous debug log said 2 hours) the audiobook will be reset to "Wanted"

philborman commented 5 years ago

Recent changes to lazylibrarian downloaders let you set libgen to be eBook only, should solve the confusion.

Piottreck commented 5 years ago

Well that worked for me! I do not know if the Size Limits in the filter have been there before but setting a minimum size limit for audiobooks seems very promising as well for such a problem.

philborman commented 5 years ago

Size limits have been there a while now, but only some torrent downloaders give us the info. We don't know sizes for libgen or nzb until the download is complete.