mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
fix cast oops, add youtorrent to search, catch fastresume error
This commit is contained in:
parent
d497a971db
commit
0e82847ae0
3 changed files with 9 additions and 5 deletions
|
@ -412,7 +412,10 @@ class Manager:
|
||||||
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
deluge_core.save_fastresume(unique_ID, self.unique_IDs[unique_ID].filename)
|
try:
|
||||||
|
deluge_core.save_fastresume(unique_ID, self.unique_IDs[unique_ID].filename)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
os.remove(self.unique_IDs[uid].filename + ".fastresume")
|
os.remove(self.unique_IDs[uid].filename + ".fastresume")
|
||||||
|
|
|
@ -723,7 +723,7 @@ window, please enter your password"))
|
||||||
|
|
||||||
def torrent_view_clicked(self, widget, event):
|
def torrent_view_clicked(self, widget, event):
|
||||||
if event.button == 3:
|
if event.button == 3:
|
||||||
data = self.torrent_view.get_path_at_pos(event.x, event.y)
|
data = self.torrent_view.get_path_at_pos(int(event.x), int(event.y))
|
||||||
if data is None:
|
if data is None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -1008,8 +1008,8 @@ window, please enter your password"))
|
||||||
seeds_t = state['total_seeds']
|
seeds_t = state['total_seeds']
|
||||||
peers = state['num_peers']
|
peers = state['num_peers']
|
||||||
peers_t = state['total_peers']
|
peers_t = state['total_peers']
|
||||||
dl_speed = state['download_rate']
|
dl_speed = int(state['download_rate'])
|
||||||
ul_speed = state['upload_rate']
|
ul_speed = int(state['upload_rate'])
|
||||||
try:
|
try:
|
||||||
eta = common.get_eta(size, state["total_wanted_done"],
|
eta = common.get_eta(size, state["total_wanted_done"],
|
||||||
dl_speed)
|
dl_speed)
|
||||||
|
|
|
@ -38,7 +38,8 @@ class Search:
|
||||||
self.interface = deluge_interface
|
self.interface = deluge_interface
|
||||||
self.config_file = os.path.join(deluge.common.CONFIG_DIR, "newsearch.conf")
|
self.config_file = os.path.join(deluge.common.CONFIG_DIR, "newsearch.conf")
|
||||||
self.config = deluge.pref.Preferences(self.config_file, False,
|
self.config = deluge.pref.Preferences(self.config_file, False,
|
||||||
defaults={'Pirate Bay' : 'http://thepiratebay.org/search/${query}/0/7/0',
|
defaults={'YouTorrent': 'http://www.youtorrent.com/tag/?q=${query}',
|
||||||
|
'Pirate Bay' : 'http://thepiratebay.org/search/${query}/0/7/0',
|
||||||
'Google' : "http://www.google.com/cse?cx=010331601\
|
'Google' : "http://www.google.com/cse?cx=010331601\
|
||||||
931556850092%3Apfadwhze_jy&q=${query}&sa=Search&cof=FORID%3A1",
|
931556850092%3Apfadwhze_jy&q=${query}&sa=Search&cof=FORID%3A1",
|
||||||
'Mininova' : 'http://www.mininova.org/search/?search=${query}/seeds',
|
'Mininova' : 'http://www.mininova.org/search/?search=${query}/seeds',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue