Media Get From URL Screen - cressie176/Load64 GitHub Wiki
Add an image from a remote URL to the candidate grid on the Cover Art screen or Screenshots screen.
┌──────────────────────────────────────────────────────────────────────────────┐
│ TOP BAR │
│ <Game Title> > Media > Cover Art > From URL │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ FORM │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ │ │
│ │ URL * │ │
│ │ ┌──────────────────────────────────────────────────────────────────┐ │ │
│ │ │ _ │ │ │
│ │ └──────────────────────────────────────────────────────────────────┘ │ │
│ │ │ │
│ │ [Download] │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
├──────────────────────────────────────────────────────────────────────────────┤
│ BOTTOM BAR │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ TOP BAR │
│ <Game Title> > Media > Screenshots > From URL │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ FORM │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ │ │
│ │ URL * │ │
│ │ ┌──────────────────────────────────────────────────────────────────┐ │ │
│ │ │ _ │ │ │
│ │ └──────────────────────────────────────────────────────────────────┘ │ │
│ │ │ │
│ │ [Download] │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
│ │
├──────────────────────────────────────────────────────────────────────────────┤
│ BOTTOM BAR │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
In import mode the breadcrumb is prefixed with Import Games >:
Import Games > <Title> > Media > Cover Art > From URLImport Games > <Title> > Media > Screenshots > From URL
Focusable: No
Interactive: No
Purpose: Identify the screen and the calling context
| Context | Mode | Title |
|---|---|---|
| Cover Art | Standard | <Game Title> > Media > Cover Art > From URL |
| Cover Art | Import | Import Games > <Title> > Media > Cover Art > From URL |
| Screenshots | Standard | <Game Title> > Media > Screenshots > From URL |
| Screenshots | Import | Import Games > <Title> > Media > Screenshots > From URL |
See Import Candidate screen for the <Title> derivation rule.
Type: Form
Focusable: Yes (primary focus region)
Interactive: Yes
Purpose: Provide a remote image URL to download and add to the candidates grid
A text input for the remote image URL. LoadC64 downloads the image and stores it in the appropriate media subfolder (media/cover/ for Cover Art, media/screenshots/ for Screenshots) when [Download] is pressed. The filename is derived from the image content — see Media filename conventions. Downloading the same image again, from any URL, is idempotent: the existing file is overwritten and no duplicate appears in the candidates grid.
Downloads the image from the URL and returns to the calling screen, where the image is appended to the candidates grid and focused. If the download fails, the error is shown in the bottom bar and the screen remains open.
Focusable: No
Interactive: No
Purpose: Display errors when the image cannot be downloaded
After an error:
├──────────────────────────────────────────────────────────────────────────────┤
│ BOTTOM BAR │
│ <Error message> │
└──────────────────────────────────────────────────────────────────────────────┘
| Name | Type | Required | Notes |
|---|---|---|---|
| URL | String | Yes | Must not be empty. |