Merge pull request #1403 from bahorn/fix/drag-and-drop-urlquote

Quoting file URIs moved by drag and drop
This commit is contained in:
auouymous 2022-09-23 09:08:14 +00:00 committed by GitHub
commit 08ec67d297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1015,7 +1015,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
(('text/uri-list', 0, 0),), Gdk.DragAction.COPY)
def drag_data_get(tree, context, selection_data, info, timestamp):
uris = ['file://' + e.local_filename(create=False)
uris = ['file://' + urllib.parse.quote(e.local_filename(create=False))
for e in self.get_selected_episodes()
if e.was_downloaded(and_exists=True)]
selection_data.set_uris(uris)