[pitivi: 1/4] Fix #611996 some more.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 1/4] Fix #611996 some more.
- Date: Mon, 8 Mar 2010 09:21:29 +0000 (UTC)
commit 20ce1fb1be3ba034176016fc7ba8abeb1e244c49
Author: Alessandro Decina <alessandro d gmail com>
Date: Sun Mar 7 19:39:05 2010 +0100
Fix #611996 some more.
pitivi/ui/sourcelist.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 95cd91c..c5574b9 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -26,7 +26,8 @@ import pango
import os
import time
-from urllib import unquote
+from urllib import unquote, quote
+from urlparse import urlsplit, urlunsplit
from gettext import gettext as _
from gettext import ngettext
@@ -901,8 +902,15 @@ class SourceList(gtk.VBox, Loggable):
directories = [incoming]
if directories:
self.addFolders(directories)
+
+ def quote_uri(uri):
+ parts = list(urlsplit(uri, allow_fragments=False))
+ parts[2] = quote(parts[2])
+ uri = urlunsplit(parts)
+ return uri
+
try:
- self.addUris(filenames)
+ self.addUris([quote_uri(uri) for uri in filenames])
except SourceListError:
# filenames already present in the sourcelist
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]