Skip to content

Commit 97b3a32

Browse files
committed
cleanup
1 parent d852299 commit 97b3a32

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

backend/handler/filesystem/resources_handler.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ async def _discard_partial_file(self, relative_path: str) -> None:
178178
async def _store_cover(self, entity: Rom | Collection, url_cover: str) -> None:
179179
"""Fetch a cover once and write both sizes.
180180
181-
The small cover is a downscale of the large one, so fetching the same
182-
URL a second time would only re-retrieve bytes we already hold, and on
183-
ScreenScraper would spend a second request from the account's quota.
184-
185181
Args:
186182
entity: Rom or Collection object
187183
url_cover: url to get the cover
@@ -253,8 +249,6 @@ async def _store_cover(self, entity: Rom | Collection, url_cover: str) -> None:
253249
if not downloaded:
254250
return None
255251

256-
# Inspecting and re-encoding the file is local work, so it runs once the
257-
# provider's request slot has been handed back.
258252
try:
259253
if await self._discard_if_chroma_key(big_path):
260254
# A small cover left by an earlier scan would outlive the large
@@ -288,9 +282,6 @@ async def _store_cover(self, entity: Rom | Collection, url_cover: str) -> None:
288282
async def _derive_small_cover(self, entity: Rom | Collection) -> None:
289283
"""Rebuild a missing small cover from the large one already on disk.
290284
291-
The small cover is a downscale of the large one, so a half-written pair
292-
is repaired locally instead of spending a request on bytes we hold.
293-
294285
Args:
295286
entity: Rom or Collection object
296287
"""

0 commit comments

Comments
 (0)