Skip to content

fix(playtime): read firmware without playedTimeOnConsole and treat every column as optional - #19

Merged
marcelorsdd merged 2 commits into
mainfrom
fix/firmware-playtime
Nov 20, 2026
Merged

marcelorsdd merged 2 commits into
mainfrom
fix/firmware-playtime

Conversation

@marcelorsdd

Copy link
Copy Markdown
Owner

Problem

On firmware such as 6.02, the profile table tbl_iconinfo_<user> in app.db has no playedTimeOnConsole column. The payload only accepted tables with that column, so it found none, the games list returned an error and the Profile showed "Could not load the data (HTTP 500)". Trophies were unaffected. The same missing column is reported on 4.03 in another project.

Fix

Every column the playtime reader uses is now optional:

  • A profile table only needs titleId. Tables without it are skipped.
  • Playtime: playedTimeOnConsole, then gltTotalPlayedTime (the total PSN keeps for the game, in seconds), then 0.
  • Last played: lastPlayedDateOnConsole, then gltlastPlayedDate, then lastAccessTime.
  • tbl_contentinfo and tbl_appbrowse are read only when they have titleId.

gltTotalPlayedTime includes other consoles and is empty on a console that stays offline, so the README FAQ now says so.

Tests

The host fixture gains three profile tables: one shaped like 6.02 (gltTotalPlayedTime, no playedTimeOnConsole), one with only titleId and lastAccessTime, and one without titleId. The 6.02 test failed before the fix (the table was ignored) and passes now. make -C payload host-test: 110 tests, 0 failed.

Fixes #18

…ery column as optional

On firmware such as 6.02, tbl_iconinfo_<user> has no playedTimeOnConsole
column, so no table qualified, the games list returned an error and the
Profile showed HTTP 500 (#18).

A profile table now only needs titleId. Playtime comes from
playedTimeOnConsole, then gltTotalPlayedTime (the PSN total), then 0. The
last-played date comes from lastPlayedDateOnConsole, then gltlastPlayedDate,
then lastAccessTime. tbl_contentinfo and tbl_appbrowse are read only when
they have titleId.

Fixes #18
@marcelorsdd
marcelorsdd merged commit 96386ca into main Nov 20, 2026
11 checks passed
@marcelorsdd
marcelorsdd deleted the fix/firmware-playtime branch November 20, 2026 00:41
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.

OpenPSApp expects playedTimeOnConsole, whereas console exposes gltTotalPlayedTime.

1 participant