rename book package to media

This commit is contained in:
2022-03-05 10:58:15 -05:00
parent c9b70f02e7
commit 98584bbef6
8 changed files with 41 additions and 38 deletions

View File

@@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"git.yetaga.in/alazyreader/library/book"
"git.yetaga.in/alazyreader/library/media"
"github.com/gdamore/tcell"
)
@@ -361,19 +361,19 @@ func (l *List) SetMembers(lkv []ListKeyValue) {
type BookDetails struct {
x, y int
h, w int
book *book.Book
book *media.Book
style tcell.Style
visible bool
}
func NewBookDetails(b *book.Book) *BookDetails {
func NewBookDetails(b *media.Book) *BookDetails {
return &BookDetails{
book: b,
visible: true,
}
}
func (l *BookDetails) SetBook(b *book.Book) {
func (l *BookDetails) SetBook(b *media.Book) {
l.book = b
}