Minor Changes : Rename totalPath -> absolutePath

This commit is contained in:
aditya-K2 2021-10-17 21:53:39 +05:30
parent 680b41cb6e
commit 24f94fc4e5

View File

@ -33,7 +33,7 @@ func Update(conn mpd.Client, f []FileNode, inputTable *tview.Table) {
inputTable.Clear() inputTable.Clear()
for i, j := range f { for i, j := range f {
if len(j.children) == 0 { if len(j.children) == 0 {
_songAttributes, err := conn.ListAllInfo(j.totalPath) _songAttributes, err := conn.ListAllInfo(j.absolutePath)
if err == nil && _songAttributes[0]["Title"] != "" { if err == nil && _songAttributes[0]["Title"] != "" {
inputTable.SetCell(i, 0, inputTable.SetCell(i, 0,
tview.NewTableCell("[#fbff00]"+_songAttributes[0]["Title"]). tview.NewTableCell("[#fbff00]"+_songAttributes[0]["Title"]).