Documentation
¶
Index ¶
- type BackMsg
- type Model
- func (m Model) Focused() int
- func (m Model) Init() tea.Cmd
- func (m Model) MatchesBookSave(itemID string, generation uint64) bool
- func (m Model) MatchesEpisodeSave(itemID, episodeID string, generation uint64) bool
- func (m Model) SaveError() error
- func (m Model) Saving() bool
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) ValidationError() string
- func (m Model) View() string
- type SaveCmd
- type SaveEpisodeCmd
- type SavedEpisodeMsg
- type SavedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea model for the metadata editor screen.
func New ¶
func New(styles ui.Styles, item abs.LibraryItem) Model
New creates a metadata editor for a library item.
func NewEpisode ¶
func NewEpisode(styles ui.Styles, item abs.LibraryItem, episode abs.PodcastEpisode) Model
NewEpisode creates a metadata editor for a podcast episode.
func (Model) MatchesBookSave ¶
MatchesBookSave reports whether a save result belongs to this editor instance.
func (Model) MatchesEpisodeSave ¶
MatchesEpisodeSave reports whether a save result belongs to this editor instance.
func (Model) ValidationError ¶
ValidationError returns the current validation error.
type SaveCmd ¶
type SaveCmd struct {
ItemID string
Generation uint64
Request abs.UpdateMediaRequest
}
SaveCmd requests saving edited metadata to ABS.
type SaveEpisodeCmd ¶
type SaveEpisodeCmd struct {
ItemID string
EpisodeID string
Generation uint64
Request abs.UpdatePodcastEpisodeRequest
}
SaveEpisodeCmd requests saving edited podcast episode metadata to ABS.
type SavedEpisodeMsg ¶
type SavedEpisodeMsg struct {
ItemID string
EpisodeID string
Generation uint64
Item *abs.LibraryItem
Err error
}
SavedEpisodeMsg reports the result of a podcast episode metadata save.
Click to show internal directories.
Click to hide internal directories.