Delete room file on empty playlist
This commit is contained in:
parent
f35cbbda3f
commit
5885a6ecf0
@ -428,6 +428,10 @@ class Room(object):
|
|||||||
if self._roomsDir is None:
|
if self._roomsDir is None:
|
||||||
return
|
return
|
||||||
if len(self._playlist) == 0:
|
if len(self._playlist) == 0:
|
||||||
|
try:
|
||||||
|
os.remove(os.path.join(self._roomsDir, self.sanitizeFilename(self._name)+'.room'))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
return
|
return
|
||||||
data = {}
|
data = {}
|
||||||
data['name'] = self._name
|
data['name'] = self._name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user