Skip to content

Commit

Permalink
Update new OPDS feed to reflect mirror integration removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 15, 2023
1 parent 62a6396 commit fe97e88
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions core/feed/annotator/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fe97e88

Please sign in to comment.