Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/jukeboxactivity.py
diff options
context:
space:
mode:
authorKushal Das <kushal@fedoraproject.org>2008-11-24 10:01:48 (GMT)
committer Kushal Das <kushal@fedoraproject.org>2008-11-24 10:01:48 (GMT)
commit3c47fb62c1b0908aab64c224f3697a21a6106f50 (patch)
tree0b81a4b28c29cb8268107a46895f5d352167e3bf /jukeboxactivity.py
parent2e97e658aea76df0b161ad3dbe8c4aafdc199dbf (diff)
Working on #9041, fixing the code so that it can play songs with strange filenames
Diffstat (limited to 'jukeboxactivity.py')
-rw-r--r--jukeboxactivity.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index c60e996..2c4926e 100644
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -227,8 +227,10 @@ class JukeboxActivity(activity.Activity):
for x in links:
if x.startswith('http://'):
result.append(x)
+ elif x.startswith('#'):
+ continue
else:
- result.append('file://' + os.path.join(self.playpath,x))
+ result.append('file://' + urllib.quote(os.path.join(self.playpath,x)))
return result
def _start(self, uri=None):
@@ -250,7 +252,7 @@ class JukeboxActivity(activity.Activity):
#read complete
pass
else:
- self.playlist.append('file://' + urllib.quote(uri))
+ self.playlist.append("file://" + urllib.quote(os.path.abspath(uri)))
if not self.player:
# lazy init the player so that videowidget is realized
# and has a valid widget allocation