Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Delta/Database/OpenVGDB/GamesDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ extension GamesDatabase
class GamesDatabase
{
static let version = -1
static let artworkScheme = "https"
static let artworkHost = "gamefaqs1.cbsistatic.com"

private let connection: Connection

Expand Down Expand Up @@ -103,7 +105,10 @@ class GamesDatabase
let artworkURL: URL?
if let address = row[artworkAddress]
{
artworkURL = URL(string: address)
var urlComponents = URLComponents(string: address)
urlComponents?.scheme = GamesDatabase.artworkScheme
urlComponents?.host = GamesDatabase.artworkHost
artworkURL = urlComponents?.url
}
else
{
Expand Down