1
0
mirror of https://github.com/azlux/botamusique synced 2024-11-23 22:06:09 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Terry Geng
100a5d66d9
Merge pull request #295 from parnikkapore/fix_extend_print
Remove tracing from media/playlist.py/extend()
2021-09-24 08:46:03 -04:00
Parnikkapore
d60b53838e Remove tracing from media/playlist.py/extend() 2021-09-24 20:00:37 +08:00

View File

@ -87,15 +87,11 @@ class BasePlaylist(list):
return item return item
def extend(self, items): def extend(self, items):
print("extend to-enter")
with self.playlist_lock: with self.playlist_lock:
print("extend enter")
self.version += 1 self.version += 1
super().extend(items) super().extend(items)
self.pending_items.extend(items) self.pending_items.extend(items)
print("extend leave")
self.async_validate() self.async_validate()
return items return items