summaryrefslogtreecommitdiff
path: root/lazycachelist.py
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-16 21:50:38 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-16 21:50:38 -0500
commitb8df4605b42d9a61bb4ae4731efabbdc38166063 (patch)
treed0044ca3c47c00442d15a99da6e309c08601b99e /lazycachelist.py
parentcd1657ece1fa199964abd6544b81b394ab9369aa (diff)
downloadimmich-frame-b8df4605b42d9a61bb4ae4731efabbdc38166063.tar.xz
immich-frame-b8df4605b42d9a61bb4ae4731efabbdc38166063.zip
add config and add application thread manager
Diffstat (limited to 'lazycachelist.py')
-rw-r--r--lazycachelist.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lazycachelist.py b/lazycachelist.py
index b08b85d..3b2744d 100644
--- a/lazycachelist.py
+++ b/lazycachelist.py
@@ -1,6 +1,7 @@
from dataclasses import dataclass, asdict
from texture import ImageTextureImmichAsset
+from manager import PixMan
@dataclass
class Album:
@@ -34,8 +35,8 @@ class CallbackStateData:
class LazyCachingTextureList():
- def __init__(self, immich_connector, album_ids, max_cache_items=100, change_callback=None):
- self.immich_connector = immich_connector
+ def __init__(self, album_ids, max_cache_items=100, change_callback=None):
+ self.immich_connector = PixMan().immich_connector
assert max_cache_items >= 20, "Minimum cache items is 20" # Double small radius
# Ring buffer