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:01:51 (GMT) |
commit | 8e8abec20ff5ea3917113e9e51cc8f982e988790 (patch) | |
tree | 6728ef6d7c358def3f99f21118126c58b783c9a7 | |
parent | 0b80e3a0ae3ea4c77b4c6545d4a2a06d3df69c28 (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)) |