LazyLibrarian: Automate your ebook/author collection

Got a program that plays well with SABnzbd? Share it here!
FatGiant
Newbie
Newbie
Posts: 17
Joined: November 13th, 2010, 7:47 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by FatGiant »

Can it be because I have Sab on https:// ???
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

I use sabnzbd on https, as long as you make sure to put in your username and password for sab in the config that shouldn't be an issue
FatGiant
Newbie
Newbie
Posts: 17
Joined: November 13th, 2010, 7:47 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by FatGiant »

Changed Sab port to the normal one, (not https://)

Nothing yet.

Also, even after the last update, no logs tab and no config button.

Added a bunch of authors, that I checked NZBMatrix beforehand, added books that I found available.

Sample of my log:
Image
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

Here is a look at a small update to the downloaded bar
Image
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

FatGiant wrote:Changed Sab port to the normal one, (not https://)

Nothing yet.

Also, even after the last update, no logs tab and no config button.

Added a bunch of authors, that I checked NZBMatrix beforehand, added books that I found available.

Sample of my log:
Image
When it says Found 50 nzb's... it means found 50 for the author in total. Essentially the way it works is it searches for books by an author and attempts to match the words in the books title to the 50 results found. A match will only download if all words in the title of the book are found in the title of the nzb file. That being said, I have successfully tested and been able to download a number of books from that author so it must be an issue related to your config.

Wimma was able to get it working on Ubuntu so it would have to be an issue thats spesific to your configuration

Have a look at your settings and see if changing them to match these helps:
sab hostname: 0.0.0.0
sab port: 80
sab api: (copy in sab's 'API Key' NOT 'NZB Key')
sab username: (Enter a username if you setup sab with a login)
sab password: (Enter a password if you setup sab with a login)
languages: 'en'
ebook format: 'epub'
FatGiant
Newbie
Newbie
Posts: 17
Joined: November 13th, 2010, 7:47 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by FatGiant »

Apparently the problem starts with the matching of names in NZBMatrix.

Taking a good look at my settings there.
simonk83
Jr. Member
Jr. Member
Posts: 69
Joined: December 11th, 2010, 3:41 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by simonk83 »

When you get a chance, could you add a "Check for Updates" button, and also something somewhere that says which commit you're currently on? Just saves restarting each time there's an update :)

Also I don't think the updater is working... At least for me, after a restart it'll tell me there's an update available, but after clicking it and waiting for LL to reboot it still shows updates as available, and I can see the changes haven't gone through.

EDIT: Just tried a git pull through the console and it gave the old "local changes will be overwritten, commit or stash" blah blah, so perhaps that's stopping it (I haven't changed anything manually BTW). I did a git stash, then a pull and it went through OK.

Thanks!!
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

Added the button on the config page with the current version at the bottom of the page. Lazy librarian will now also check for the version every 2 hours automatically.

EDIT: the updater will now also ignore local file changes
Last edited by LibrarianMike on November 24th, 2012, 5:30 pm, edited 1 time in total.
simonk83
Jr. Member
Jr. Member
Posts: 69
Joined: December 11th, 2010, 3:41 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by simonk83 »

LibrarianMike wrote:Added the button on the config page with the current version at the bottom of the page. Lazy librarian will now also check for the version every 2 hours automatically.
Cool, thanks.

Something is still wrong somewhere though:

Code: Select all

macmini:LazyLibrarian Simon$ git pull
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 13 (delta 11), reused 13 (delta 11)
Unpacking objects: 100% (13/13), done.
From https://github.com/LibrarianMike/LazyLibrarian
   71353ca..77ce795  master     -> origin/master
Updating 71353ca..77ce795
error: Your local changes to the following files would be overwritten by merge:
	lazylibrarian/__init__.pyc
	lazylibrarian/versioncheck.pyc
	lazylibrarian/webServe.pyc
Please, commit your changes or stash them before you can merge.
Aborting


I'm not sure how SickBeard and CouchPotato get around this?
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

I have just pushed another small update which tells git to ignore any local file changes. Should fix that problem when updating through the application.
simonk83
Jr. Member
Jr. Member
Posts: 69
Joined: December 11th, 2010, 3:41 pm

Re: LazyLibrarian: Automate your ebook/author collection

Post by simonk83 »

LibrarianMike wrote:I have just pushed another small update which tells git to ignore any local file changes. Should fix that problem when updating through the application.
Awesome, thanks, I'll keep an eye on it next time there's an update :)

Just one other feature suggestion while i'm annoying you. Would you be able to add a "default" in the setting somewhere to choose how many books you want displayed? I generally change it to 100 but it resets whenever you do anything :)
vileboy
Newbie
Newbie
Posts: 10
Joined: October 30th, 2012, 8:16 am

Re: LazyLibrarian: Automate your ebook/author collection

Post by vileboy »

I'm getting an error 32 code when trying to update. It says its in use by another process (the log file)
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

Can you provide some more details. What system are you running? Do you have the file open with something else? Have you tried deleting the log file?
vileboy
Newbie
Newbie
Posts: 10
Joined: October 30th, 2012, 8:16 am

Re: LazyLibrarian: Automate your ebook/author collection

Post by vileboy »

Code: Select all

25-Nov-2012 15:05:20 - INFO    :: MAIN : Checking database
25-Nov-2012 15:05:20 - INFO    :: MAIN : Starting LazyLibrarian on port: 8082
25-Nov-2012 15:05:43 - INFO    :: MAIN : LazyLibrarian is updating...
25-Nov-2012 15:05:43 - INFO    :: MAIN : Downloading update from: https://github.com/LibrarianMike/lazylibrarian/tarball/master
25-Nov-2012 15:05:47 - INFO    :: MAIN : Extracing fileD:\LazyLibrarian-master\master
25-Nov-2012 15:05:51 - INFO    :: MAIN : Deleting fileD:\LazyLibrarian-master\master
25-Nov-2012 15:05:51 - WARNING :: MAIN : LazyLibrarian failed to update: [Error 32] The process cannot access the file because it is being used by another process: 'D:\\LazyLibrarian-master\\Logs\\lazylibrarian.log'. Restarting.
25-Nov-2012 15:05:51 - INFO    :: MAIN : LazyLibrarian is restarting ...
25-Nov-2012 15:05:51 - INFO    :: MAIN : Restarting LazyLibrarian with ['D:\\Python27\\python.exe', 'D:\\LazyLibrarian-master\\LazyLibrarian.py', '--nolaunch']
25-Nov-2012 15:05:55 - INFO    :: MAIN : Checking database
25-Nov-2012 15:05:55 - INFO    :: MAIN : Starting LazyLibrarian on port: 8082
I can't see what else would be accessing this. Win7 running Python 2.7
This is the log after I deleted the old on. Still no joy.
LibrarianMike

Re: LazyLibrarian: Automate your ebook/author collection

Post by LibrarianMike »

Try updating it again, I believe I have fixed the log issue.
Post Reply