This commit is contained in:
Andreas Preikschat 2012-05-19 17:41:05 +02:00
parent b0585297fb
commit 49cd100f90
2 changed files with 2 additions and 4 deletions

View File

@ -379,8 +379,7 @@ class MediaManagerItem(QtGui.QWidget):
fullList = []
for count in range(self.listView.count()):
names.append(self.listView.item(count).text())
fullList.append(self.listView.item(count).
data(QtCore.Qt.UserRole))
fullList.append(self.listView.item(count).data(QtCore.Qt.UserRole))
duplicatesFound = False
filesAdded = False
for file in files:

View File

@ -145,8 +145,7 @@ class VlcPlayer(MediaPlayer):
log.debug(u'load vid in Vlc Controller')
controller = display.controller
volume = controller.media_info.volume
file_path = str(
controller.media_info.file_info.absoluteFilePath().toUtf8())
file_path = str(controller.media_info.file_info.absoluteFilePath())
path = os.path.normcase(file_path)
# create the media
display.vlcMedia = display.vlcInstance.media_new_path(path)