mirror of
https://github.com/SirHumza/orbisRPC.git
synced 2026-10-06 13:00:35 +02:00
- tmdb_crypto: self-contained SHA1/HMAC, URL builder, response parse, all verified against hashlib and Sony's live service in unit tests - tmdb: plain-HTTP fetch with deadline plus 8-entry cache - detect: TMDB in both resolve paths; artwork URL plumbed through detect_last_art into presence assets (official Sony CDN, no uploads) - remove appdb byte-scan: boundary ambiguity returned wrong names, worse than raw IDs; also removes the multi-MB game-process read - discord/daemon: full-URL artwork wins, pack URL next, asset key last
13 lines
569 B
C
13 lines
569 B
C
/* tmdb.h - Sony TMDB runtime title/icon resolver (PS4 transport + cache). */
|
|
#ifndef TMDB_H
|
|
#define TMDB_H
|
|
#include <stddef.h>
|
|
/* Resolve titleId (e.g. "CUSA00740") to official display name and icon
|
|
* URL via Sony's TMDB service. Results cached in memory. Returns 0 with
|
|
* name set on success (icon may stay empty), -1 on any failure.
|
|
* Bounded: single attempt, ~10s worst case, no retries (caller falls
|
|
* through to the next name source). */
|
|
int tmdb_resolve(const char *titleId, char *name, size_t name_cap,
|
|
char *icon, size_t icon_cap);
|
|
#endif
|