View Single Post
Old 10-13-2014, 09:33 AM   #294
buttersk
Member
buttersk began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2014
Device: MOTO Z2 FORCE
Wilbor

Quote:
Originally Posted by jhowell View Post
The change I made to the plugin was intended to work with libraries that use external authentication, such as Kirkendall.

I tried it myself, but since I don't have a library card for WILBOR I am unable to complete the sign in process. By entering a made up card number (123) and trying a search I saw in the log that the branch ID for Kirkendall is 271. After entering that in my configuration I had the following results, as expected:

Spoiler:

Signing in to WILBOR-test (branch 271) with card 123
Browse: http://wilbor.lib.overdrive.com/BANG...rceLoginFlag=0 None
Redirected login url https://wilbor.libraryreserve.com/10...=Default%2ehtm
Browse: https://wilbor.libraryreserve.com/10...=Default%2ehtm None
Using external authentication url http://ezproxy.silo.lib.ia.us:3048/o...RL=Default.htm
Browse: http://ezproxy.silo.lib.ia.us:3048/o...RL=Default.htm None
Browse: submit
Error: That barcode/patron identification number was incorrect. Please try again. Please enter your barcode/patron identification number:
Signing in to WILBOR-test: Sign in failed. Check card number and PIN.
Get http://wilbor.lib.overdrive.com/AdvancedSearch.htm
Search for recommendable books is NOT supported by WILBOR-test


It would help if you could try with your valid card and post the results in this thread. (Please blank out your card number in the log for security!)
Sure... here is my Log results:
Starting job: Search for books by 1 author
Signing in to Kirkendall (branch 271) with card xxxxxxxxxxxxxx
Browse: http://wilbor.lib.overdrive.com/BANG...rceLoginFlag=0 None
Signing in to Kirkendall: Retrying wilbor.lib.overdrive.com on exception URLError ([Errno 10061] No connection could be made because the target machine actively refused it)
Signing in to Kirkendall: Retrying wilbor.lib.overdrive.com on exception URLError ([Errno 10061] No connection could be made because the target machine actively refused it)
Signing in to Kirkendall: : URLError ([Errno 10061] No connection could be made because the target machine actively refused it)
Traceback (most recent call last):
File "calibre_plugins.overdrive_link.jobs", line 1067, in sign_in
File "calibre_plugins.overdrive_link.overdrive", line 276, in sign_in
File "calibre_plugins.overdrive_link.net", line 247, in browse_url
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 203, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 230, in _mech_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 204, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 457, in http_response
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 221, in error
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 571, in http_error_302
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 203, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_mechanize.py", line 230, in _mech_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_opener.py", line 193, in open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 344, in _open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 332, in _call_chain
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 1170, in https_open
File "site-packages\mechanize-0.2.5-py2.7.egg\mechanize\_urllib2_fork.py", line 1118, in do_open
URLError:

I didn't get as far as you... maybe I have it set up incorrectly.
Under Name... I just put "Kirkendall"... This just looks like anything I want to name it.

Under library ID I have : wilbor.lib.orverdrive.com
Under Branch ID I have : 271
Under Card Number ... I have the number I use to log in with normally. (My Lib Card #).

Card PIN* is blank, because it does not require a Pin for logging in.
buttersk is offline   Reply With Quote