LoliSnatcher_Droid icon indicating copy to clipboard operation
LoliSnatcher_Droid copied to clipboard

[Feature Request] Favourites for Hydrus

Open GreenLandisaLie opened this issue 3 years ago • 1 comments

Should be possible by adding a specific unique tag such as "lolinatcher_favourite" whenever an image is added to favourites. Then remove the tag if the image is removed from favourites. When searching for favourites lolisnatcher should look for images with that tag automatically.

This would be a simple implementation only useful for private hydrus client users ofc.

GreenLandisaLie avatar Jan 30 '22 00:01 GreenLandisaLie

Favourites seem to work after these changes:

    • making the postURL the same as fileURL (instead of empty) in the BooruItem creation of the HydrusHandler
    • adding a check in the fromDBRow method within BooruItem.dart to force update the item.mediaType when the item is from an Hydrus database, like so:
if (row["fileURL"].toString().contains('Hydrus-Client')) {
	item.mediaType = row["mediaType"].toString();
}
    • (same as 2) on the fromJSON method for LolySync:
if (json["fileURL"].toString().contains('Hydrus-Client')) {
  item.mediaType = json["mediaType"].toString();
}

GreenLandisaLie avatar Aug 08 '22 00:08 GreenLandisaLie