Skip to content

Convert smyfilescache to LAVA @artifact_processor (+ media migration)#818

Merged
abrignoni merged 1 commit into
mainfrom
lava-batch-66
Jun 21, 2026
Merged

Convert smyfilescache to LAVA @artifact_processor (+ media migration)#818
abrignoni merged 1 commit into
mainfrom
lava-batch-66

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts smyfilescache.py (Samsung My Files FileCache.db) to the decorated @artifact_processor pattern.

Changes

  • Schema fallback fixed: the original ran two queries back-to-back (date_modified/_data then date/path) and emitted the same report for each that succeeded — a duplicate if both columns existed. Now tries the variants in order and uses the first that works.
  • Media migration: thumbnail column moves from media_to_html to ('Media','media') backed by check_in_media, resolving each {_index}.jpg against the cache files in the extraction.
  • Timestamp Modified and Latest are now aware UTC datetime values.
  • Guard added: if no FileCache.db is present, the artifact no longer falls through to open_sqlite_db_readonly on a cache .jpg (the old loop left file_found pointing at the last file).
  • Renamed smyfilescacheMy Files Cache (parallels My Files Trash).

Original creation_date/last_update_date (2022-06-23) preserved.

Converts the Samsung My Files FileCache.db parser to the decorated
single-return pattern. The original ran two schema queries back to back
(date_modified/_data vs date/path) emitting the same report twice if both
matched; this now tries the variants in order and uses the first that
succeeds. Thumbnail column migrates from media_to_html to ('Media','media')
backed by check_in_media, resolving each {_index}.jpg against the cache
files. Timestamp Modified and Latest are now aware UTC datetimes. Adds a
guard so a missing FileCache.db no longer falls through to opening a cache
jpg as a database. Renames artifact 'smyfilescache' -> 'My Files Cache'.
@abrignoni abrignoni merged commit 36a7557 into main Jun 21, 2026
1 check passed
@abrignoni abrignoni deleted the lava-batch-66 branch June 21, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant