mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-03-26 17:03:08 +00:00
Scope VDF key lookup to top-level fields and update Steam CDN URL
This commit is contained in:
parent
03059af424
commit
fdc57c457c
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ Game *SteamImporter::parseAppManifest(const QString &path)
|
|||
|
||||
// Simple VDF parser
|
||||
auto getValue = [&content](const QString &key) -> QString {
|
||||
QRegularExpression regex(QStringLiteral("\"%1\"\\s+\"([^\"]+)\"").arg(key));
|
||||
QRegularExpression regex(QStringLiteral("\\t\"%1\"\\s+\"([^\"]+)\"").arg(key));
|
||||
QRegularExpressionMatch match = regex.match(content);
|
||||
return match.hasMatch() ? match.captured(1) : QString();
|
||||
};
|
||||
|
|
@ -233,7 +233,7 @@ QUrl SteamImporter::findCoverImage(const QString &appId) const
|
|||
}
|
||||
|
||||
// Return Steam CDN URL as fallback
|
||||
return QUrl(QStringLiteral("https://steamcdn-a.akamaihd.net/steam/apps/%1/library_600x900_2x.jpg").arg(appId));
|
||||
return QUrl(QStringLiteral("https://cdn.cloudflare.steamstatic.com/steam/apps/%1/library_600x900_2x.jpg").arg(appId));
|
||||
}
|
||||
|
||||
QList<Game *> SteamImporter::importGames()
|
||||
|
|
|
|||
Loading…
Reference in a new issue