diff --git a/bin/opds2_odl_import_monitor b/bin/opds2_odl_import_monitor index a43955c8a..d7e0769ba 100755 --- a/bin/opds2_odl_import_monitor +++ b/bin/opds2_odl_import_monitor @@ -3,17 +3,13 @@ OPDS 2.x + ODL collections.""" -from webpub_manifest_parser.odl import ODLFeedParserFactory - from palace.manager.api.odl.importer import ( OPDS2WithODLImporter, OPDS2WithODLImportMonitor, ) -from palace.manager.core.opds2_import import RWPMManifestParser from palace.manager.scripts.monitor import RunCollectionMonitorScript RunCollectionMonitorScript( OPDS2WithODLImportMonitor, import_class=OPDS2WithODLImporter, - parser=RWPMManifestParser(ODLFeedParserFactory()), ).run() diff --git a/bin/opds2_odl_schema_validate b/bin/opds2_odl_schema_validate index 28ab269d3..29bf82276 100755 --- a/bin/opds2_odl_schema_validate +++ b/bin/opds2_odl_schema_validate @@ -3,17 +3,13 @@ OPDS import collections.""" -from webpub_manifest_parser.odl import ODLFeedParserFactory - from palace.manager.api.odl.importer import OPDS2WithODLImporter -from palace.manager.core.opds2_import import RWPMManifestParser from palace.manager.core.opds_schema import OPDS2WithODLSchemaValidation from palace.manager.scripts.monitor import RunCollectionMonitorScript import_script = RunCollectionMonitorScript( OPDS2WithODLSchemaValidation, import_class=OPDS2WithODLImporter, - parser=RWPMManifestParser(ODLFeedParserFactory()), ) import_script.run() diff --git a/bin/opds2_reaper_monitor b/bin/opds2_reaper_monitor index dfc73f8c7..bdff39511 100755 --- a/bin/opds2_reaper_monitor +++ b/bin/opds2_reaper_monitor @@ -6,16 +6,10 @@ from collections.abc import Generator from typing import Any, cast from sqlalchemy.orm import raiseload -from webpub_manifest_parser.opds2 import OPDS2FeedParserFactory from palace.manager.core.coverage import CoverageFailure from palace.manager.core.metadata_layer import TimestampData -from palace.manager.core.opds2_import import ( - OPDS2API, - OPDS2Importer, - OPDS2ImportMonitor, - RWPMManifestParser, -) +from palace.manager.core.opds2_import import OPDS2API, OPDS2Importer, OPDS2ImportMonitor from palace.manager.scripts.input import CollectionInputScript from palace.manager.sqlalchemy.model.collection import Collection from palace.manager.sqlalchemy.model.edition import Edition @@ -28,7 +22,6 @@ def main(): importer_class=OPDS2Importer, monitor_class=OPDS2ReaperMonitor, protocol=OPDS2Importer.NAME, - parser=RWPMManifestParser(OPDS2FeedParserFactory()), ) reaper_script.run() diff --git a/bin/opds2_schema_validate b/bin/opds2_schema_validate index 117118bdb..0e1936e33 100755 --- a/bin/opds2_schema_validate +++ b/bin/opds2_schema_validate @@ -2,10 +2,7 @@ """Update the circulation manager server with new books from OPDS import collections.""" - -from webpub_manifest_parser.opds2 import OPDS2FeedParserFactory - -from palace.manager.core.opds2_import import OPDS2Importer, RWPMManifestParser +from palace.manager.core.opds2_import import OPDS2Importer from palace.manager.core.opds_schema import OPDS2SchemaValidation from palace.manager.scripts.opds_import import OPDSImportScript @@ -13,7 +10,6 @@ import_script = OPDSImportScript( importer_class=OPDS2Importer, monitor_class=OPDS2SchemaValidation, protocol=OPDS2Importer.NAME, - parser=RWPMManifestParser(OPDS2FeedParserFactory()), ) import_script.run()