[Pkg-sugar-commit] [sugar-jukebox-activity] 01/02: For the new sugar journal, it imports the .m3u files as .m3u8 files

Jonas Smedegaard dr at jones.dk
Sat Jun 27 01:57:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v8
in repository sugar-jukebox-activity.

commit fbf01ed9809f32a2bf71bb2eef5ab2e80e6537f9
Author: Kushal Das <kushal at fedoraproject.org>
Date:   Tue Mar 17 14:31:51 2009 +0530

    For the new sugar journal, it imports the .m3u files as .m3u8 files
---
 jukeboxactivity.py | 4 ++--
 1 file 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))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-jukebox-activity.git



More information about the pkg-sugar-commit mailing list