From fe97e88f06d11f072c34b69fe2941b451660eb52 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Fri, 15 Sep 2023 09:03:22 -0300 Subject: [PATCH] Update new OPDS feed to reflect mirror integration removal. --- core/feed/annotator/admin.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/core/feed/annotator/admin.py b/core/feed/annotator/admin.py index 193b8e70f2..8b5e903e29 100644 --- a/core/feed/annotator/admin.py +++ b/core/feed/annotator/admin.py @@ -6,9 +6,7 @@ from core.feed.annotator.verbose import VerboseAnnotator from core.feed.types import FeedData, Link, WorkEntry from core.lane import Pagination -from core.mirror import MirrorUploader from core.model import DataSource -from core.model.configuration import ExternalIntegrationLink from core.model.library import Library @@ -75,24 +73,6 @@ def annotate_work_entry( ) ) - # If there is a storage integration for the collection, changing the cover is allowed. - if active_license_pool: - mirror = MirrorUploader.for_collection( - active_license_pool.collection, ExternalIntegrationLink.COVERS - ) - if mirror: - entry.computed.other_links.append( - Link( - href=self.url_for( - "work_change_book_cover", - identifier_type=identifier.type, - identifier=identifier.identifier, - _external=True, - ), - rel="http://librarysimplified.org/terms/rel/change_cover", - ) - ) - def suppressed_url(self, pagination: Pagination) -> str: kwargs = dict(list(pagination.items())) return self.url_for("suppressed", _external=True, **kwargs)