summaryrefslogtreecommitdiff
path: root/play.py
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-10-27 02:55:32 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-10-27 02:55:32 (GMT)
commitbdedcd26d046d2283aebf5eb85f09634bef0d3db (patch)
treec64900cbcba69520f014c03eb25f332e5f4a1987 /play.py
parent2e12502e19c3f4f6f944250c0975549e00230eb0 (diff)
downloadplay-bdedcd26d046d2283aebf5eb85f09634bef0d3db.tar.xz
play: auto. load playlists in path
Diffstat (limited to 'play.py')
-rwxr-xr-xplay.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/play.py b/play.py
index 61494cc..33f4ab8 100755
--- a/play.py
+++ b/play.py
@@ -919,6 +919,8 @@ class PlaylistWindow(TagListWindow):
pathname = os.path.join(dir, filename)
if VALID_SONG(filename):
self.append(PlaylistEntry(pathname))
+ elif VALID_PLAYLIST(filename):
+ self.add_playlist(filename)
if os.path.isdir(pathname):
subdirs.append(pathname)
map(self.add_dir, subdirs)