Use rstrip to strip all spaces from right-hand side of URI
This commit is contained in:
parent
18f6f9c50f
commit
e71de798e9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user