Documentation
¶
Index ¶
- type Core
- func (c *Core) BuildUploadReview(ctx context.Context, req api.Request) (api.UploadReview, error)
- func (c *Core) CheckDupes(ctx context.Context, req api.Request) (api.DupeCheckSummary, error)
- func (c *Core) Close() error
- func (c *Core) DeleteAllHistoryReleases(ctx context.Context) (int, error)
- func (c *Core) DeleteHistoryRelease(ctx context.Context, sourcePath string) error
- func (c *Core) DeleteScreenshot(ctx context.Context, req api.Request, imagePath string) error
- func (c *Core) DeleteTrackerImageURL(ctx context.Context, req api.Request, url string) error
- func (c *Core) DeleteUploadedImage(ctx context.Context, req api.Request, imagePath string, host string) error
- func (c *Core) DiscoverPlaylists(ctx context.Context, sourcePath string) ([]api.PlaylistInfo, error)
- func (c *Core) ExportGUICachedPreparedMeta(ctx context.Context, req api.Request) (api.PreparedMetadata, bool, error)
- func (c *Core) FetchDescriptionBuilderGroupPreview(ctx context.Context, req api.Request) (api.DescriptionBuilderGroup, error)
- func (c *Core) FetchDescriptionBuilderPreview(ctx context.Context, req api.Request) (api.DescriptionBuilderPreview, error)
- func (c *Core) FetchMetadataPreview(ctx context.Context, req api.Request) (api.MetadataPreview, error)
- func (c *Core) FetchPreparationPreview(ctx context.Context, req api.Request) (api.PreparationPreview, error)
- func (c *Core) FetchScreenshotPlan(ctx context.Context, req api.Request) (api.ScreenshotPlan, error)
- func (c *Core) FetchTrackerDryRunPreview(ctx context.Context, req api.Request) (api.TrackerDryRunPreview, error)
- func (c *Core) GenerateScreenshots(ctx context.Context, req api.Request, selections []api.ScreenshotSelection, ...) (api.ScreenshotResult, error)
- func (c *Core) GetHistoryOverview(ctx context.Context, sourcePath string) (api.HistoryOverview, error)
- func (c *Core) ImportMenuImages(ctx context.Context, req api.Request, importPaths []string) error
- func (c *Core) ImportPreparedMetadataForGUI(ctx context.Context, req api.Request, meta api.PreparedMetadata) error
- func (c *Core) ListHistory(ctx context.Context) ([]api.HistoryEntry, error)
- func (c *Core) ListUploadCandidates(ctx context.Context, req api.Request) ([]api.ScreenshotImage, error)
- func (c *Core) ListUploadedImages(ctx context.Context, req api.Request) ([]api.UploadedImageLink, error)
- func (c *Core) LoadPlaylistSelection(ctx context.Context, sourcePath string) (api.PlaylistSelection, error)
- func (c *Core) PreviewScreenshotFrame(ctx context.Context, req api.Request, timestampSeconds float64) (api.ScreenshotPreview, error)
- func (c *Core) RenderDescription(ctx context.Context, raw string) (string, error)
- func (c *Core) RunUpload(ctx context.Context, req api.Request) (api.Result, error)
- func (c *Core) RunUploadPrepared(ctx context.Context, req api.Request) (api.Result, error)
- func (c *Core) SaveDescriptionOverride(ctx context.Context, req api.Request, raw string) (api.DescriptionBuilderGroup, error)
- func (c *Core) SaveFinalScreenshotSelections(ctx context.Context, req api.Request, images []api.ScreenshotImage) error
- func (c *Core) SavePlaylistSelection(ctx context.Context, sourcePath string, playlists []string, useAll bool) error
- func (c *Core) SelectBlurayCandidate(ctx context.Context, sourcePath string, releaseID string) (api.MetadataPreview, error)
- func (c *Core) UploadImages(ctx context.Context, req api.Request, host string, ...) (api.UploadImagesResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func NewWithContext ¶
func (*Core) BuildUploadReview ¶
BuildUploadReview returns dupe, rule, dry-run, and banned-group review data for one prepared source path, committing GUI cache updates only after review work succeeds. Partial GUI reviews preserve unreviewed tracker cache state and can commit from a request-refreshed cache entry only when that entry matches the current request.
func (*Core) CheckDupes ¶
func (*Core) DeleteAllHistoryReleases ¶
func (*Core) DeleteHistoryRelease ¶
func (*Core) DeleteScreenshot ¶
func (*Core) DeleteTrackerImageURL ¶
func (*Core) DeleteUploadedImage ¶
func (*Core) DiscoverPlaylists ¶
func (*Core) ExportGUICachedPreparedMeta ¶
func (c *Core) ExportGUICachedPreparedMeta(ctx context.Context, req api.Request) (api.PreparedMetadata, bool, error)
ExportGUICachedPreparedMeta exposes the resolved GUI prepared metadata cache entry so callers can hand off metadata to isolated per-run cores.
func (*Core) FetchDescriptionBuilderGroupPreview ¶
func (c *Core) FetchDescriptionBuilderGroupPreview(ctx context.Context, req api.Request) (api.DescriptionBuilderGroup, error)
FetchDescriptionBuilderGroupPreview rebuilds one description group from cached or freshly prepared metadata. Request trackers limit the rebuild to the selected set while tracker removals still suppress removed selections.
func (*Core) FetchDescriptionBuilderPreview ¶
func (c *Core) FetchDescriptionBuilderPreview(ctx context.Context, req api.Request) (api.DescriptionBuilderPreview, error)
FetchDescriptionBuilderPreview builds editable description groups from cached or freshly prepared metadata. When request trackers are provided, only that selected set contributes groups; selections that resolve empty return an empty preview instead of falling back to configured defaults.
func (*Core) FetchMetadataPreview ¶
func (c *Core) FetchMetadataPreview(ctx context.Context, req api.Request) (api.MetadataPreview, error)
FetchMetadataPreview prepares and enriches metadata for one validated source path, emits metadata progress, and stores the refreshed prepared metadata cache entry. An empty tracker request is not an explicit "no trackers" request; downstream tracker resolution can still use configured defaults.
func (*Core) FetchPreparationPreview ¶
func (c *Core) FetchPreparationPreview(ctx context.Context, req api.Request) (api.PreparationPreview, error)
FetchPreparationPreview builds the tracker preparation preview for one validated source path. Explicit tracker selections limit preparation to those trackers; selections that resolve empty return an empty preview.
func (*Core) FetchScreenshotPlan ¶
func (*Core) FetchTrackerDryRunPreview ¶
func (c *Core) FetchTrackerDryRunPreview(ctx context.Context, req api.Request) (api.TrackerDryRunPreview, error)
FetchTrackerDryRunPreview builds per-tracker dry-run upload entries from cached prepared metadata, creating torrents and cache state only after selected trackers resolve.
func (*Core) GenerateScreenshots ¶
func (c *Core) GenerateScreenshots(ctx context.Context, req api.Request, selections []api.ScreenshotSelection, purpose api.ScreenshotPurpose) (api.ScreenshotResult, error)
func (*Core) GetHistoryOverview ¶
func (*Core) ImportMenuImages ¶
func (*Core) ImportPreparedMetadataForGUI ¶
func (c *Core) ImportPreparedMetadataForGUI(ctx context.Context, req api.Request, meta api.PreparedMetadata) error
ImportPreparedMetadataForGUI stores prepared metadata on a per-run core so GUI dry-run and upload-only flows can reuse metadata prepared on the long-lived GUI core.
func (*Core) ListHistory ¶
func (*Core) ListUploadCandidates ¶
func (*Core) ListUploadedImages ¶
func (*Core) LoadPlaylistSelection ¶
func (*Core) PreviewScreenshotFrame ¶
func (*Core) RenderDescription ¶
func (*Core) RunUploadPrepared ¶
RunUploadPrepared uploads from cached prepared metadata for each requested path. Explicit tracker selections that resolve empty return without tracker upload side effects, while omitted tracker selections retain configured default behavior. If a later path fails or the context is canceled after earlier uploads complete, the returned result preserves the uploaded count accumulated before the error.