forked from Wobbl/Wobuzz
Fixed crash that occurred when renaming new playlists.
This commit is contained in:
parent
3e579a4fcb
commit
b95081e840
1 changed files with 4 additions and 5 deletions
|
@ -124,11 +124,10 @@ class Playlist:
|
||||||
wbz.close()
|
wbz.close()
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
os.remove(
|
path = f"{self.app.settings.library_path}/playlists/{self.title.replace(" ", "_")}.wbz.m3u"
|
||||||
os.path.expanduser(
|
|
||||||
f"{self.app.settings.library_path}/playlists/{self.title.replace(" ", "_")}.wbz.m3u"
|
if os.path.exists(path):
|
||||||
),
|
os.remove(os.path.expanduser(path))
|
||||||
)
|
|
||||||
|
|
||||||
def append_track(self, track):
|
def append_track(self, track):
|
||||||
self.tracks.append(track)
|
self.tracks.append(track)
|
||||||
|
|
Loading…
Add table
Reference in a new issue