Beispiel #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()
Beispiel #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()
Beispiel #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
Beispiel #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
Beispiel #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()
Beispiel #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()
Beispiel #7
0
 def check_text(self, text):
     urls = []
     if text:
         urls = misc.links_parser(text)
     return urls
 def check_text(self, text):
     urls = []
     if text:
         urls = misc.links_parser(text)
     return urls
 def on_ok(self):
     self.links_list = links_parser(self.text_view.toPlainText())
     self.accept()
Beispiel #10
0
 def on_ok(self):
     self.links_list = links_parser(self.text_view.toPlainText())
     self.accept()