Load author data with fedireads connector

This commit is contained in:
Mouse Reeve
2020-05-09 12:09:40 -07:00
parent bb01834a31
commit 093945e7fb
9 changed files with 73 additions and 25 deletions

View File

@ -80,6 +80,18 @@ class Connector(AbstractConnector):
return edition
def get_cover_from_data(self, data):
return None
def get_authors_from_data(self, data):
authors = []
for author_url in data.get('authors', []):
authors.append(self.get_or_create_author(author_url))
return authors
def update_book(self, book, data=None):
''' add remote data to a local book '''
if not data: