forked from openlp/openlp
clean up
This commit is contained in:
parent
b0585297fb
commit
49cd100f90
@ -379,8 +379,7 @@ class MediaManagerItem(QtGui.QWidget):
|
|||||||
fullList = []
|
fullList = []
|
||||||
for count in range(self.listView.count()):
|
for count in range(self.listView.count()):
|
||||||
names.append(self.listView.item(count).text())
|
names.append(self.listView.item(count).text())
|
||||||
fullList.append(self.listView.item(count).
|
fullList.append(self.listView.item(count).data(QtCore.Qt.UserRole))
|
||||||
data(QtCore.Qt.UserRole))
|
|
||||||
duplicatesFound = False
|
duplicatesFound = False
|
||||||
filesAdded = False
|
filesAdded = False
|
||||||
for file in files:
|
for file in files:
|
||||||
|
@ -145,8 +145,7 @@ class VlcPlayer(MediaPlayer):
|
|||||||
log.debug(u'load vid in Vlc Controller')
|
log.debug(u'load vid in Vlc Controller')
|
||||||
controller = display.controller
|
controller = display.controller
|
||||||
volume = controller.media_info.volume
|
volume = controller.media_info.volume
|
||||||
file_path = str(
|
file_path = str(controller.media_info.file_info.absoluteFilePath())
|
||||||
controller.media_info.file_info.absoluteFilePath().toUtf8())
|
|
||||||
path = os.path.normcase(file_path)
|
path = os.path.normcase(file_path)
|
||||||
# create the media
|
# create the media
|
||||||
display.vlcMedia = display.vlcInstance.media_new_path(path)
|
display.vlcMedia = display.vlcInstance.media_new_path(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user