add checking for url in web seed plugin

This commit is contained in:
Marcos Pinto 2007-08-14 19:21:00 +00:00
parent 8238605aa4
commit 14a57c6d00
1 changed files with 3 additions and 1 deletions

View File

@ -65,4 +65,6 @@ class webseedMenu:
response = self.dialog.run() response = self.dialog.run()
self.dialog.hide() self.dialog.hide()
if response: if response:
self.core.add_url_seed(self.unique_ID, self.glade.get_widget("txt_url").get_text()) text = self.glade.get_widget("txt_url").get_text().strip()
if common.is_url(text):
self.core.add_url_seed(self.unique_ID, text)