add storygraph import

This commit is contained in:
Allie Signet
2021-05-10 14:00:51 -03:00
parent 78f3e2efc2
commit 36439506b6
4 changed files with 39 additions and 1 deletions

View File

@ -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()