Skip to content

Commit

Permalink
Device sync: Sanitize mount point encoding (bug 1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnwickremasinghe authored and thp committed Mar 27, 2013
1 parent 614f9b7 commit 6bf6702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/gtkui/desktop/deviceplaylist.py
Expand Up @@ -33,7 +33,7 @@ def __init__(self, config, playlist_name):
self.linebreak = '\r\n'
self.playlist_file=util.sanitize_filename(playlist_name + '.m3u')
self.playlist_folder = os.path.join(self._config.device_sync.device_folder, self._config.device_sync.playlists.folder)
self.mountpoint = util.find_mount_point(self.playlist_folder)
self.mountpoint = util.find_mount_point(util.sanitize_encoding(self.playlist_folder))
if self.mountpoint == '/':
self.mountpoint = self.playlist_folder
logger.warning('MP3 player resides on / - using %s as MP3 player root', self.mountpoint)
Expand Down

0 comments on commit 6bf6702

Please sign in to comment.