The durable "I asked for this" record was called Want, and the one-shot search-and-grab attempt was called Request — names that didn't match what either actually did. Want is now Request, and the old Request/Item is now Download/DownloadItem, with a table-rename migration (download_wants -> download_requests, old download_requests -> download_downloads) safe against both fresh installs and existing data. Every anchored manual download now upserts/reuses a durable Request before running, so a "download now" that finds nothing is picked up by the background reconciler automatically instead of just failing with no trace — the gap that caused this session's repeated "no candidates found" failures on the same album. Also adds auto-download guardrails (file-size min/max with a preferred target, allowed file types) that gate what the pipeline may grab unattended, live-editable from a new settings section. The frontend's wanted-view becomes downloads-view, with a new Downloads tab showing attempt/transfer history that previously had no UI at all. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y2Agd9af5hE7qzti2ackiS
108 lines
2.9 KiB
JavaScript
Executable File
108 lines
2.9 KiB
JavaScript
Executable File
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
export function GetDownloadPreferences() {
|
|
return window['go']['config']['Config']['GetDownloadPreferences']();
|
|
}
|
|
|
|
export function GetFavoritesIconStyle() {
|
|
return window['go']['config']['Config']['GetFavoritesIconStyle']();
|
|
}
|
|
|
|
export function GetFavoritesPlaylistID() {
|
|
return window['go']['config']['Config']['GetFavoritesPlaylistID']();
|
|
}
|
|
|
|
export function GetLibraryDirectory() {
|
|
return window['go']['config']['Config']['GetLibraryDirectory']();
|
|
}
|
|
|
|
export function GetPinDefaultPlaylist() {
|
|
return window['go']['config']['Config']['GetPinDefaultPlaylist']();
|
|
}
|
|
|
|
export function GetScanConcurrency() {
|
|
return window['go']['config']['Config']['GetScanConcurrency']();
|
|
}
|
|
|
|
export function GetShortcuts() {
|
|
return window['go']['config']['Config']['GetShortcuts']();
|
|
}
|
|
|
|
export function GetThemeAccentColor() {
|
|
return window['go']['config']['Config']['GetThemeAccentColor']();
|
|
}
|
|
|
|
export function GetThemeBackgroundShade() {
|
|
return window['go']['config']['Config']['GetThemeBackgroundShade']();
|
|
}
|
|
|
|
export function GetTrackListColumns() {
|
|
return window['go']['config']['Config']['GetTrackListColumns']();
|
|
}
|
|
|
|
export function Load() {
|
|
return window['go']['config']['Config']['Load']();
|
|
}
|
|
|
|
export function ResetShortcuts() {
|
|
return window['go']['config']['Config']['ResetShortcuts']();
|
|
}
|
|
|
|
export function Save() {
|
|
return window['go']['config']['Config']['Save']();
|
|
}
|
|
|
|
export function SetContext(arg1) {
|
|
return window['go']['config']['Config']['SetContext'](arg1);
|
|
}
|
|
|
|
export function SetDownloadPreferences(arg1) {
|
|
return window['go']['config']['Config']['SetDownloadPreferences'](arg1);
|
|
}
|
|
|
|
export function SetFavoritesIconStyle(arg1) {
|
|
return window['go']['config']['Config']['SetFavoritesIconStyle'](arg1);
|
|
}
|
|
|
|
export function SetFavoritesPlaylistID(arg1) {
|
|
return window['go']['config']['Config']['SetFavoritesPlaylistID'](arg1);
|
|
}
|
|
|
|
export function SetLibraryDirectory(arg1) {
|
|
return window['go']['config']['Config']['SetLibraryDirectory'](arg1);
|
|
}
|
|
|
|
export function SetPinDefaultPlaylist(arg1) {
|
|
return window['go']['config']['Config']['SetPinDefaultPlaylist'](arg1);
|
|
}
|
|
|
|
export function SetScanConcurrency(arg1) {
|
|
return window['go']['config']['Config']['SetScanConcurrency'](arg1);
|
|
}
|
|
|
|
export function SetShortcut(arg1, arg2) {
|
|
return window['go']['config']['Config']['SetShortcut'](arg1, arg2);
|
|
}
|
|
|
|
export function SetShortcuts(arg1) {
|
|
return window['go']['config']['Config']['SetShortcuts'](arg1);
|
|
}
|
|
|
|
export function SetThemeAccentColor(arg1) {
|
|
return window['go']['config']['Config']['SetThemeAccentColor'](arg1);
|
|
}
|
|
|
|
export function SetThemeBackgroundShade(arg1) {
|
|
return window['go']['config']['Config']['SetThemeBackgroundShade'](arg1);
|
|
}
|
|
|
|
export function SetTrackListColumns(arg1) {
|
|
return window['go']['config']['Config']['SetTrackListColumns'](arg1);
|
|
}
|
|
|
|
export function Validate() {
|
|
return window['go']['config']['Config']['Validate']();
|
|
}
|