mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-07 11:45:25 +00:00
feat: add active_app from active_window when scanning
This commit is contained in:
parent
92ed7d7b51
commit
01a294a70a
@ -198,6 +198,8 @@ async def loop_files(library_id, folder, folder_path, force, plugins):
|
|||||||
if file_type_group == "image":
|
if file_type_group == "image":
|
||||||
metadata = read_metadata(absolute_file_path)
|
metadata = read_metadata(absolute_file_path)
|
||||||
if metadata:
|
if metadata:
|
||||||
|
if "active_window" in metadata and "active_app" not in metadata:
|
||||||
|
metadata["active_app"] = metadata["active_window"].split(" - ")[0]
|
||||||
new_entity["metadata_entries"] = [
|
new_entity["metadata_entries"] = [
|
||||||
{
|
{
|
||||||
"key": key,
|
"key": key,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user