Fixes loading remote books

- saves remote_id correctly
- loads remote books for incoming statuses
This commit is contained in:
Mouse Reeve
2020-10-30 17:04:10 -07:00
parent 72219ace77
commit 203e526a83
8 changed files with 57 additions and 5 deletions

View File

@ -47,8 +47,12 @@ class Connector(AbstractConnector):
]
def get_remote_id_from_data(self, data):
return data.get('id')
def is_work_data(self, data):
return data['book_type'] == 'Work'
return data['type'] == 'Work'
def get_edition_from_work_data(self, data):