Add openlibrary selector to list

This commit is contained in:
Mouse Reeve
2021-12-14 12:59:24 -08:00
parent ba390dc3ad
commit 73ea44e532
3 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ from bookwyrm.importers import (
LibrarythingImporter,
GoodreadsImporter,
StorygraphImporter,
OpenLibraryImporter,
)
# pylint: disable= no-self-use
@ -49,6 +50,8 @@ class Import(View):
importer = LibrarythingImporter()
elif source == "Storygraph":
importer = StorygraphImporter()
elif source == "OpenLibrary":
importer = OpenLibraryImporter()
else:
# Default : Goodreads
importer = GoodreadsImporter()