Download audio files support from the details dialogue for songs

This commit is contained in:
2016-02-15 16:49:09 -06:00
parent 8c6e89ba9c
commit e5a7f461c3
4 changed files with 40 additions and 3 deletions

View File

@@ -140,3 +140,8 @@ class audio(widgetUtils.BaseDialog):
bbox.Add(self.download, 0, wx.ALL, 5)
bbox.Add(close, 0, wx.ALL, 5)
def get_destination_path(self, filename):
saveFileDialog = wx.FileDialog(self, _(u"Save this file"), "", filename, _(u"Audio Files(*.mp3)|*.mp3"), wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
if saveFileDialog.ShowModal() == wx.ID_OK:
return saveFileDialog.GetPath()
saveFileDialog.Destroy()