diff options
author | Kushal Das <kushal@fedoraproject.org> | 2009-03-17 09:01:51 (GMT) |
---|---|---|
committer | Kushal Das <kushal@fedoraproject.org> | 2009-03-17 09:05:47 (GMT) |
commit | fbf01ed9809f32a2bf71bb2eef5ab2e80e6537f9 (patch) | |
tree | c014d3278b067b2ac6725217b89f916dcd41cfbc | |
parent | 9972554d4459308632ed7da03fbdd0d23ddacdf8 (diff) |
For the new sugar journal, it imports the .m3u files as .m3u8 files
-rw-r--r-- | jukeboxactivity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jukeboxactivity.py b/jukeboxactivity.py index 202275b..f062a2a 100644 --- a/jukeboxactivity.py +++ b/jukeboxactivity.py @@ -269,8 +269,8 @@ class JukeboxActivity(activity.Activity): if not uri: return False # FIXME: parse m3u files and extract actual URL - if uri.endswith(".m3u"): - self.playlist = self.getplaylist([line.strip() for line in open(uri).readlines()]) + if uri.endswith(".m3u") or uri.endswith(".m3u8"): + self.playlist.extend(self.getplaylist([line.strip() for line in open(uri).readlines()])) elif uri.endswith('.pls'): try: cf.readfp(open(uri)) |