Browse Source

Remove spaces from urls

doc-issue-template
MrS0m30n3 11 years ago
parent
commit
f3202a1cf3
1 changed files with 3 additions and 0 deletions
  1. 3
      youtube_dl_gui/YoutubeDLGUI.py

3
youtube_dl_gui/YoutubeDLGUI.py

@ -209,6 +209,7 @@ class MainFrame(wx.Frame):
def load_tracklist(self, trackList):
for url in trackList:
url = url.replace(' ', '')
if url != '':
self.urlList.append(url)
self.statusList._add_item(url)
@ -246,6 +247,8 @@ class MainFrame(wx.Frame):
curList = self.trackList.GetValue().split('\n')
''' For each url in current url list '''
for url in curList:
''' Remove spaces from url '''
url = url.replace(' ', '')
''' If url is not in self.urlList (original downloads list) and url is not empty '''
if url not in self.urlList and url != '':
''' Add url into original download list '''

Loading…
Cancel
Save