diff options
Diffstat (limited to 'nephilim/plugins/Filebrowser.py')
-rw-r--r-- | nephilim/plugins/Filebrowser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/plugins/Filebrowser.py b/nephilim/plugins/Filebrowser.py index 7740afe..352eb02 100644 --- a/nephilim/plugins/Filebrowser.py +++ b/nephilim/plugins/Filebrowser.py @@ -88,14 +88,14 @@ class wgFilebrowser(QtGui.QWidget): def selection_copy_to_collection(self): target_paths = [] for index in self.selectedIndexes(): - filepath = unicode(self.model().filePath(index)) + filepath = self.model().filePath(index) self.logger.info('Copying %s to collection.'%filepath) path_base = os.path.basename(filepath) try: if os.path.isdir(filepath): shutil.copytree(filepath, '%s/%s'%(self.plugin.settings.value('MPD/music_dir').toString(), path_base)) else: - shutil.copy(filepath, unicode(self.plugin.settings.value('MPD/music_dir').toString())) + shutil.copy(filepath, self.plugin.settings.value('MPD/music_dir').toString()) target_paths.append(path_base) except (OSError, IOError), e: self.logger.error('Error copying to collection: %s.'%e) |