add storygraph import
This commit is contained in:
parent
78f3e2efc2
commit
36439506b6
4 changed files with 39 additions and 1 deletions
|
@ -10,7 +10,7 @@ from django.utils.decorators import method_decorator
|
|||
from django.views import View
|
||||
|
||||
from bookwyrm import forms, models
|
||||
from bookwyrm.importers import Importer, LibrarythingImporter, GoodreadsImporter
|
||||
from bookwyrm.importers import Importer, LibrarythingImporter, GoodreadsImporter, StorygraphImporter
|
||||
from bookwyrm.tasks import app
|
||||
|
||||
# pylint: disable= no-self-use
|
||||
|
@ -42,6 +42,8 @@ class Import(View):
|
|||
importer = None
|
||||
if source == "LibraryThing":
|
||||
importer = LibrarythingImporter()
|
||||
elif source == "Storygraph":
|
||||
importer = StorygraphImporter()
|
||||
else:
|
||||
# Default : GoodReads
|
||||
importer = GoodreadsImporter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue