Strip space from end of added URL and ignore empty URLs

This commit is contained in:
Et0h 2016-06-11 15:10:45 +01:00
parent 1e9e9609f2
commit 7bf8132335

View File

@ -801,7 +801,10 @@ class MainWindow(QtGui.QMainWindow):
URIsToAdd = utils.convertMultilineStringToList(URIsTextbox.toPlainText())
self.updatingPlaylist = True
for URI in URIsToAdd:
self.addStreamToPlaylist(URI)
if URI.endswith(u" "):
URI = URI[:-1]
if URI <> "":
self.addStreamToPlaylist(URI)
self.updatingPlaylist = False
@needsClient