Skip to content

Commit

Permalink
Merge pull request #11 from vpoluyaktov/fix_Footer_date
Browse files Browse the repository at this point in the history
Footer build date field width fixed
  • Loading branch information
vpoluyaktov authored Feb 10, 2024
2 parents 023eb53 + e1d4da7 commit 44d7d92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/controller/copy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (c *CopyController) startCopy(cmd *dto.CopyCommand) {
}
c.ab.TotalSize = abSize

c.mq.SendMessage(mq.CopyController, mq.Footer, &dto.UpdateStatus{Message: "Copying audiobook files to Audiobookshelf..."}, false)
c.mq.SendMessage(mq.CopyController, mq.Footer, &dto.UpdateStatus{Message: "Copying audiobook to the output directory..."}, false)
c.mq.SendMessage(mq.CopyController, mq.Footer, &dto.SetBusyIndicator{Busy: true}, false)

logger.Info(fmt.Sprintf("Copying the audiobook: %s - %s to %s/...", c.ab.Author, c.ab.Title, c.ab.Config.OutputDir))
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/build_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ func (p *BuildPage) displayBookInfo(ab *dto.Audiobook) {
destPath := audiobookshelf.GetDestignationPath(ab.Config.GetOutputDir(), ab.Series, ab.Author)
destDir := audiobookshelf.GetDestignationDir(ab.Series, ab.SeriesNo, ab.Title, ab.Narrator)
filePath := filepath.Clean(filepath.Join(destPath, destDir))
p.copySection.SetTitle(" Output directory " + filePath + "/: ")
p.copySection.SetTitle(" Output directory: " + filePath + "/ ")
p.copyTable.Clear()
p.copyTable.showHeader()
for i, part := range ab.Parts {
p.copyTable.appendRow(" "+strconv.Itoa(i+1)+" ", filepath.Base(part.M4BFile), part.Format, utils.SecondsToTime(part.Duration), utils.BytesToHuman(part.Size), "")
}
p.copyTable.ScrollToBeginning()

p.uploadSection.SetTitle(" Audiobookshelf server " + ab.Config.AudiobookshelfUrl + ": ")
p.uploadSection.SetTitle(" Audiobookshelf server: " + ab.Config.AudiobookshelfUrl + " ")
p.uploadTable.Clear()
p.uploadTable.showHeader()
for i, part := range ab.Parts {
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/footer.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newFooter(dispatcher *mq.Dispatcher) *footer {
f.version.SetBackgroundColor(footerBgColor)

f.grid = tview.NewGrid()
f.grid.SetColumns(8, -1, 12)
f.grid.SetColumns(8, -1, 25)
f.grid.AddItem(f.busyIndicator, 0, 0, 1, 1, 0, 0, false)
f.grid.AddItem(f.statusMessage, 0, 1, 1, 1, 0, 0, false)
f.grid.AddItem(f.version, 0, 2, 1, 1, 0, 0, false)
Expand Down

0 comments on commit 44d7d92

Please sign in to comment.