This commit is contained in:
Lurkars 2022-02-24 16:15:15 +01:00
parent 5e98f8e873
commit 0d432e2fd8

View File

@ -9,7 +9,6 @@ import subprocess
import time
from enum import Enum
from configparser import ConfigParser
from turtle import update
import RPi.GPIO as GPIO
from spotifydl import SpotifyDL, SpotifyDLStatus
from mpd import MPDClient
@ -370,7 +369,7 @@ class Luniebox(object):
def mpd_list(self, path=''):
if self.mpd_connect():
try:
self.mpd(update(path))
self.mpd.update(path)
result = self.mpd.listfiles(path)
return sorted(result, key=self.sort_mpd)
except: