Minor Changes : Rename totalPath -> absolutePath
This commit is contained in:
parent
680b41cb6e
commit
24f94fc4e5
@ -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"]).
|
||||||
|
Loading…
Reference in New Issue
Block a user