Ejemplo n.º 1
0
 def onDownloadChannel(self, event):
     n = self.searchResults.Selection
     channel = self.search.get_channel(n)
     title = channel["name"]
     url = channel["url"]
     download_type = "channel"
     dlg = DownloadProgress(self.Parent, title)
     direct_download(int(config_get('defaultformat')), url, dlg,
                     download_type)
Ejemplo n.º 2
0
 def directDownload(self):
     n = self.searchResults.Selection
     if self.search.get_views(n) is None and self.search.get_type(
             n) == "video":
         return
     url = self.search.get_url(self.searchResults.Selection)
     title = self.search.get_title(self.searchResults.Selection)
     download_type = self.search.get_type(self.searchResults.Selection)
     dlg = DownloadProgress(self.Parent, title)
     direct_download(int(config_get('defaultformat')), url, dlg,
                     download_type)
Ejemplo n.º 3
0
 def onDirect(self, event):
     dlg = DownloadProgress(self.Parent.Parent, self.title)
     direct_download(int(config_get('defaultformat')), self.url, dlg)
Ejemplo n.º 4
0
 def onVideoDownload(self, event):
     dlg = DownloadProgress(self.Parent.Parent, self.title)
     direct_download(0, self.url, dlg)
Ejemplo n.º 5
0
 def onVideoDownload(self, event):
     url = self.search.get_url(self.searchResults.Selection)
     title = self.search.get_title(self.searchResults.Selection)
     download_type = self.search.get_type(self.searchResults.Selection)
     dlg = DownloadProgress(self.Parent, title)
     direct_download(0, url, dlg, download_type)