Solaire / GLC

Lightweight, console-based, tool which automatically detects installed games and displays them to the user.
GNU General Public License v3.0
16 stars 3 forks source link

Add downloading of not-installed images for Epic with Legendary. #55

Closed Nutzzz closed 2 years ago

Nutzzz commented 2 years ago

I can't figure out a consistent way (i.e., without guessing URLs from titles) to get images from Epic. We could get them from another source (e.g., #53 ), but similar inexact title-matching applies.

Nutzzz commented 2 years ago

This repo's issue indicates %ProgramData%\Epic\EpicGamesLauncher\Data\Catalog\catcache.bin is a base-64 encoded json file that contains image URLs.

EDIT: Hey, whaddaya know? After decoding this file, it looks like Legendary won't be necessary to list the Epic not-installed games.

EDIT 2: I was having trouble with getting Unicode characters from catcache.bin. I thought it was my code at first, but it looks like it's Epic's encoding itself that's at fault. So I guess I'll strip out any "?"s from titles and call it a day.

Nutzzz commented 2 years ago

Committed in PR #56