Page 10 of 31

Re: LazyLibrarian: Automate your ebook/author collection

Posted: November 27th, 2012, 6:31 pm
by vileboy
Now I'm getting this:

Code: Select all

27-Nov-2012 23:27:47 - INFO    :: MAIN : LazyLibrarian is updating...
27-Nov-2012 23:27:47 - INFO    :: MAIN : Downloading update from: https://github.com/LibrarianMike/lazylibrarian/tarball/master
27-Nov-2012 23:27:51 - INFO    :: MAIN : Extracing fileD:\LazyLibrarian-master\master
27-Nov-2012 23:27:53 - INFO    :: MAIN : Deleting fileD:\LazyLibrarian-master\master
27-Nov-2012 23:27:53 - ERROR   :: MAIN : Invalid update data, update failed: ['LibrarianMike-LazyLibrarian-577e839', 'LibrarianMike-LazyLibrarian-a9c885d']
27-Nov-2012 23:27:53 - INFO    :: MAIN : LazyLibrarian is restarting ...
27-Nov-2012 23:27:55 - INFO    :: MAIN : Checking database
27-Nov-2012 23:27:55 - INFO    :: MAIN : Starting LazyLibrarian on port: 8082
27-Nov-2012 23:29:49 - INFO    :: MAIN : Checking database
27-Nov-2012 23:29:49 - INFO    :: MAIN : Starting LazyLibrarian on port: 8082
27-Nov-2012 23:30:07 - INFO    :: MAIN : LazyLibrarian is updating...
27-Nov-2012 23:30:07 - INFO    :: MAIN : Downloading update from: https://github.com/LibrarianMike/lazylibrarian/tarball/master
27-Nov-2012 23:30:10 - INFO    :: MAIN : Extracing fileD:\LazyLibrarian-master\master
27-Nov-2012 23:30:12 - INFO    :: MAIN : Deleting fileD:\LazyLibrarian-master\master
27-Nov-2012 23:30:12 - ERROR   :: MAIN : Invalid update data, update failed: ['LibrarianMike-LazyLibrarian-577e839', 'LibrarianMike-LazyLibrarian-a9c885d']
27-Nov-2012 23:30:12 - INFO    :: MAIN : LazyLibrarian is restarting ...
27-Nov-2012 23:30:12 - INFO    :: MAIN : Restarting LazyLibrarian with ['D:\\Python27\\python.exe', 'D:\\LazyLibrarian-master\\LazyLibrarian.py', '--nolaunch']
27-Nov-2012 23:30:14 - INFO    :: MAIN : Checking database
27-Nov-2012 23:30:14 - INFO    :: MAIN : Starting LazyLibrarian on port: 8082

Re: LazyLibrarian: Automate your ebook/author collection

Posted: November 28th, 2012, 9:16 pm
by Watso4183
Trying to launch a fresh Git clone and I'm seeing this:

[/share/MD0_DATA/.qpkg/LazyLibrarian/LazyLibrarian] # python LazyLibrarian.py -d
Traceback (most recent call last):
File "LazyLibrarian.py", line 153, in <module>
main()
File "LazyLibrarian.py", line 33, in main
from lazylibrarian import versioncheck
File "/share/MD0_DATA/.qpkg/LazyLibrarian/LazyLibrarian/lazylibrarian/versioncheck.py", line 7, in <module>
import lib.simplejson as simplejson
ImportError: Bad magic number in /share/MD0_DATA/.qpkg/LazyLibrarian/LazyLibrarian/lib/simplejson/__init__.pyc

Ideas?

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 12:11 am
by scochr
On the Author page it says 0 out of x downloaded on every author even though it has downloaded many books for each author. How do I fix this?

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 12:13 am
by scochr
Also on the Author page under the Download column it says 0/x twice for each author. One 0/x is centered on the Downloaded column and the other 0/x is on the right side of the Download column (right justified).

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 12:16 am
by LibrarianMike
It changes the number downloaded when post processing. Make sure you have the correct current path and path you want the file moved too setup in config. Not sure what this issue is with it displaying twice.

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 1:47 am
by scochr
Thanks...post process does cause the download number to appear correctly, except it still shows the number downloaded 2x. However, the problem with post processing is that it renames the downloaded file incorrectly. For example it renames all the downloads to a randomly named file (for example it renamed a .mobi file to TT6OX3~G without an extension.)

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 1:50 am
by LibrarianMike
That's odd behaviour. It is supposed to rename it to the title of the book

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:35 am
by scochr
I replaced the lazylibrarian.db file with the original and it is still renaming the files incorrectly during the post processing. It looks like it also creates a few other files: metadata.opf and cover.jpg. Is it possible to stop the creation of these files?

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:38 am
by LibrarianMike
It was originally created so that the meta data could be used my calibre, but when I get the chance I will give users the option of turning the feature on and off

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:42 am
by scochr
I changed the destination folder for post-processing to a folder on the same disk as the source and the file is renamed a bit better. The renamed file is the name of the book but it does not have an extension.

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:47 am
by LibrarianMike
I believe it uses the extension you put in preferences so for ebook types on the config page put mobi

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:53 am
by scochr
I left the extension blank because I want to search for all formats. If I put an extension will it exclude searches for other extensions? Or does it convert books to the extension specified in the config page? What is the purpose of this config setting?

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 2:56 am
by LibrarianMike
The purpose is to limit it to one type. I will fix the renaming when I get the chance.

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 5:59 am
by LibrarianMike
FatGiant wrote:This is what my LL looks like.

Running in Linux. Same results in Chrome and Firefox.

Image
This issue should now be fixed.

Re: LazyLibrarian: Automate your ebook/author collection

Posted: December 2nd, 2012, 9:54 am
by FatGiant
Yes, it is now fixed,

Thanks.

I'll now delete all Authors and Books and will re-add them to check if it can find anything to download, because so far, not even one.

I'll report later.

EDIT:

So I deleted everything.
Went to NZBMatrix, searched for a recent epub.
Added the Author.
Changed the Book status to Wanted.
2012-12-02 14:57:19 INFO Processing complete: Added 1 books to the database
2012-12-02 14:57:19 INFO Processing books for author with ID: 6432444
2012-12-02 14:57:18 INFO Processing info for authorID: 6432444
2012-12-02 14:57:13 INFO Found author: Tom Aston with GoodReads-id: 6432444
2012-12-02 14:57:12 INFO Searching for author with name: {'id': 'Tom Aston'}
2012-12-02 14:57:05 INFO Found 2 results
2012-12-02 14:57:04 INFO Searching for author at: http://www.goodreads.com/search.xml?q=T ... 7omh74ZZ6Q
2012-12-02 14:57:04 INFO Tom Aston
And that's all it did. No search, no download, nothing.