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)
|
signature = str(entry)
|
||||||
self.logger.log_info("Processing entry: " + signature)
|
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":
|
if webdata == "error":
|
||||||
@@ -57,13 +57,13 @@ class BookGrabber(QThread):
|
|||||||
|
|
||||||
bd = BibTextTransformer(self.mode).get_data(webdata).return_data()
|
bd = BibTextTransformer(self.mode).get_data(webdata).return_data()
|
||||||
if bd is None:
|
if bd is None:
|
||||||
|
# bd = BookData
|
||||||
continue
|
continue
|
||||||
bd.signature = entry
|
bd.signature = entry
|
||||||
transformer = (
|
transformer = (
|
||||||
BibTextTransformer("RDS").get_data(webdata).return_data("rds_data")
|
BibTextTransformer("RDS").get_data(webdata).return_data("rds_data")
|
||||||
)
|
)
|
||||||
if bd is None:
|
|
||||||
continue
|
|
||||||
# confirm lock is acquired
|
# confirm lock is acquired
|
||||||
self.db.addBookToDatabase(bd, self.app_id, self.prof_id)
|
self.db.addBookToDatabase(bd, self.app_id, self.prof_id)
|
||||||
# get latest book id
|
# get latest book id
|
||||||
|
|||||||
Reference in New Issue
Block a user