Use rstrip to strip all spaces from right-hand side of URI

This commit is contained in:
Et0h 2016-06-11 15:41:23 +01:00
parent 18f6f9c50f
commit e71de798e9

View File

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