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())
|
URIsToAdd = utils.convertMultilineStringToList(URIsTextbox.toPlainText())
|
||||||
self.updatingPlaylist = True
|
self.updatingPlaylist = True
|
||||||
for URI in URIsToAdd:
|
for URI in URIsToAdd:
|
||||||
if URI.endswith(u" "):
|
URI = URI.rstrip()
|
||||||
URI = URI[:-1]
|
|
||||||
if URI <> "":
|
if URI <> "":
|
||||||
self.addStreamToPlaylist(URI)
|
self.addStreamToPlaylist(URI)
|
||||||
self.updatingPlaylist = False
|
self.updatingPlaylist = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user