Fix typo. Remove obselete function.
This commit is contained in:
parent
4f28ab9a39
commit
1941c5976c
@ -289,7 +289,7 @@ Script: %(filename)s
|
|||||||
The client-side javascript code for the %(name)s plugin.
|
The client-side javascript code for the %(name)s plugin.
|
||||||
|
|
||||||
Copyright:
|
Copyright:
|
||||||
(C) %(author_name)s 2009 <damoxc@gmail.com>
|
(C) %(author_name)s 2009 <%(author_email)s>
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 3, or (at your option)
|
the Free Software Foundation; either version 3, or (at your option)
|
||||||
|
|||||||
@ -653,15 +653,6 @@ class AddTorrentDialog(component.Component):
|
|||||||
d.addCallback(on_download_success)
|
d.addCallback(on_download_success)
|
||||||
d.addErrback(on_download_fail)
|
d.addErrback(on_download_fail)
|
||||||
|
|
||||||
def _download_from_url(self, url):
|
|
||||||
import urllib
|
|
||||||
import tempfile
|
|
||||||
import os.path
|
|
||||||
tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1])
|
|
||||||
filename, headers = urllib.urlretrieve(url, tmp_file)
|
|
||||||
log.debug("filename: %s", filename)
|
|
||||||
self.add_from_files([filename])
|
|
||||||
|
|
||||||
def _on_button_hash_clicked(self, widget):
|
def _on_button_hash_clicked(self, widget):
|
||||||
log.debug("_on_button_hash_clicked")
|
log.debug("_on_button_hash_clicked")
|
||||||
dialog = self.glade.get_widget("dialog_infohash")
|
dialog = self.glade.get_widget("dialog_infohash")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user