Merge pull request #882 from Gluejar/maintenance2020

improve handling when G doesn't return an item with same isbn
pull/94/head
Eric Hellman 2020-07-24 13:38:19 -04:00 committed by GitHub
commit 0d447fe583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,10 @@ def get_isbn_item(items, isbn):
for ident in industryIdentifiers:
if ident['identifier'] == isbn:
return item
# no isbn item maybe "other"
for item in items:
return item
def add_by_isbn_from_google(isbn, work=None):
"""add a book to the UnglueIt database from google based on ISBN. The work parameter