Exemplo n.º 1
0
 def on_ok(self):
     links_list = misc.links_parser(self.text_view.toPlainText())
     self.hide()
     if links_list:
         w = WaitDialog(self.parent, links_list)
         if w.video_links:
             self.parent.add_downloads.links_checking(w.video_links)
     self.accept()
Exemplo n.º 2
0
 def on_ok(self):
     links_list = misc.links_parser(self.text_view.toPlainText())
     self.hide()
     if links_list:
         w = WaitDialog(self.parent, links_list)
         if w.video_links:
             self.parent.add_downloads.links_checking(w.video_links)
     self.accept()
Exemplo n.º 3
0
def check_text(clipboard, selection_data):
    """"""
    urls = []
    tmp = clipboard.wait_for_text()
    if tmp:
        urls = misc.links_parser(tmp)
        #for line in tmp.splitlines():
            #if "http://" in line:
                #urls.append(line.strip())
    return urls
Exemplo n.º 4
0
def check_text(clipboard, selection_data):
    """"""
    urls = []
    tmp = clipboard.wait_for_text()
    if tmp:
        urls = misc.links_parser(tmp)
        #for line in tmp.splitlines():
        #if "http://" in line:
        #urls.append(line.strip())
    return urls
Exemplo n.º 5
0
    def on_add(self, widget, other=None):
        """"""

        buffer = self.paste_field.get_buffer()
        start, end = buffer.get_bounds()
        text_pasted = buffer.get_text(start, end)

        tmp_list = links_parser(text_pasted)  #funcion importada de misc.py

        for link in tmp_list:  #very lame
            self.links_list.append(link)

        self.destroy()
Exemplo n.º 6
0
 def on_add(self, widget, other=None):
     """"""
     
     buffer = self.paste_field.get_buffer()
     start, end = buffer.get_bounds()
     text_pasted = buffer.get_text(start, end)
         
     tmp_list = links_parser(text_pasted) #funcion importada de misc.py
     
     for link in tmp_list: #very lame
         self.links_list.append(link)
     
     self.destroy()
Exemplo n.º 7
0
 def check_text(self, text):
     urls = []
     if text:
         urls = misc.links_parser(text)
     return urls
Exemplo n.º 8
0
 def check_text(self, text):
     urls = []
     if text:
         urls = misc.links_parser(text)
     return urls
Exemplo n.º 9
0
 def on_ok(self):
     self.links_list = links_parser(self.text_view.toPlainText())
     self.accept()
Exemplo n.º 10
0
 def on_ok(self):
     self.links_list = links_parser(self.text_view.toPlainText())
     self.accept()