change WebRequest
add use_any_book to add entries not presently in the apparat to complete internal search enging
This commit is contained in:
@@ -49,7 +49,7 @@ class BookGrabber(QThread):
|
||||
signature = str(entry)
|
||||
self.logger.log_info("Processing entry: " + signature)
|
||||
|
||||
webdata = WebRequest().set_apparat(self.appnr).get_ppn(entry).get_data()
|
||||
webdata = WebRequest().set_apparat(self.appnr).get_ppn(entry).use_any_book().get_data()
|
||||
|
||||
|
||||
if webdata == "error":
|
||||
@@ -57,13 +57,13 @@ class BookGrabber(QThread):
|
||||
|
||||
bd = BibTextTransformer(self.mode).get_data(webdata).return_data()
|
||||
if bd is None:
|
||||
# bd = BookData
|
||||
continue
|
||||
bd.signature = entry
|
||||
transformer = (
|
||||
BibTextTransformer("RDS").get_data(webdata).return_data("rds_data")
|
||||
)
|
||||
if bd is None:
|
||||
continue
|
||||
|
||||
# confirm lock is acquired
|
||||
self.db.addBookToDatabase(bd, self.app_id, self.prof_id)
|
||||
# get latest book id
|
||||
|
||||
Reference in New Issue
Block a user