mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-15 19:35:07 +00:00
Strip space from end of added URL and ignore empty URLs
This commit is contained in:
parent
1e9e9609f2
commit
7bf8132335
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user