feat: wire up album filtering to photo queue
Album selection now controls which photos are displayed.
Uses POST /api/search/random with albumIds filter (Immich v3
compatible) instead of the removed GET /api/albums/{id} assets.
- Add albumIds parameter to fetchRandomAssets/fetchRandomAssetIds
- syncFromAlbums: fetch random assets filtered by selected albums
- syncFromAllPhotos: preserve existing global random behavior
- Album mode reshuffles on exhaustion instead of re-fetching
- 24h resync checks album assetCounts for changes before re-fetch
- requestSync + albums_changed action triggers queue rebuild on save
- timerWakeCycle respects album selection
- Discard stale pre-renders on album change
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,8 +31,10 @@ public:
|
||||
void begin(const String& baseUrl, const String& apiKey);
|
||||
std::vector<AlbumInfo> fetchAlbums();
|
||||
std::vector<String> fetchAlbumAssetIds(const String& albumId);
|
||||
std::vector<String> fetchRandomAssetIds(int count = 50);
|
||||
std::vector<RandomAsset> fetchRandomAssets(int count = 50);
|
||||
std::vector<String> fetchRandomAssetIds(int count = 50,
|
||||
const std::vector<String>& albumIds = {});
|
||||
std::vector<RandomAsset> fetchRandomAssets(int count = 50,
|
||||
const std::vector<String>& albumIds = {});
|
||||
std::vector<String> fetchFavoriteAssetIds();
|
||||
AssetInfo fetchAssetInfo(const String& assetId);
|
||||
bool downloadAsset(const String& assetId, ImageQuality quality,
|
||||
|
||||
Reference in New Issue
Block a user