more openlibrary connector tests
This commit is contained in:
parent
5e78de1340
commit
d5f46a1c6f
2 changed files with 15 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Connector(AbstractConnector):
|
|||
|
||||
|
||||
def is_work_data(self, data):
|
||||
return not re.match(r'^OL\d+M$', data['key'])
|
||||
return bool(re.match(r'^[\/\w]+OL\d+W$', data['key']))
|
||||
|
||||
|
||||
def get_edition_from_work_data(self, data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue