Skip to content

Commit

Permalink
Fix streaming for Maemo 5 (bug 8861)
Browse files Browse the repository at this point in the history
Make sure that only local file names are
prefixed with "file://" when invoking the
media player (or other viewer apps).
  • Loading branch information
thp committed Feb 7, 2010
1 parent e83a3fd commit 25210df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gpodder/util.py
Expand Up @@ -1100,8 +1100,9 @@ def gui_open(filename):
context = osso.Context('gPodder', gpodder.__version__, False)
filename = filename.encode('utf-8')

# Fix for Maemo bug 7162 (for episodes with "#" in filename)
filename = 'file://' + urllib.quote(filename)
# Fix for Maemo bug 7162 (for local files with "#" in filename)
if filename.startswith('/'):
filename = 'file://' + urllib.quote(filename)

rpc = osso.Rpc(context)
app = 'mediaplayer'
Expand Down

0 comments on commit 25210df

Please sign in to comment.