tweak full hd warning - disable it in libtorrent

This commit is contained in:
Marcos Pinto 2007-12-01 06:45:43 +00:00
parent 4037479119
commit 27bc2a72b0
3 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,9 @@
Deluge 0.5.7.1 (31 November 2007) Deluge 0.5.7.1 (31 November 2007)
* Increase tracker timeout * Tweak full hd warning so that it only displays itself once per torrent that
it has to pause.
* Fixed crash and corruption of persistent.state while adding a duplicate * Fixed crash and corruption of persistent.state while adding a duplicate
torrent. Also caused yet another invalid handle error. torrent. Also caused yet another invalid handle error.
* Increase tracker timeout
Deluge 0.5.7 (26 November 2007) Deluge 0.5.7 (26 November 2007)
* Scrape support * Scrape support

View File

@ -1399,8 +1399,10 @@ namespace libtorrent
if (t->alerts().should_post(alert::fatal)) if (t->alerts().should_post(alert::fatal))
{ {
std::string err = "torrent paused: disk write error, " + j.str; if (j.str != "write failed: No space left on device"){
t->alerts().post_alert(file_error_alert(t->get_handle(), err)); std::string err = "torrent paused: disk write error, " + j.str;
t->alerts().post_alert(file_error_alert(t->get_handle(), err));
}
} }
t->pause(); t->pause();
return; return;

View File

@ -544,14 +544,17 @@ class Manager:
# We have enough free space, so lets resume this torrent # We have enough free space, so lets resume this torrent
self.resume(unique_ID) self.resume(unique_ID)
else: else:
self.pause(unique_ID)
self.unique_IDs[unique_ID].user_paused = True
nice_need = common.fsize(total_needed) nice_need = common.fsize(total_needed)
nice_free = common.fsize(avail) nice_free = common.fsize(avail)
import gtk import gtk
import dialogs import dialogs
gtk.gdk.threads_enter() gtk.gdk.threads_enter()
dialogs.show_popup_warning(None, _("There is not enough \ dialogs.show_popup_warning(None, _("There is not enough \
free disk space to complete your download.") + "\n" + _("Space Needed:") + " " \ free disk space to complete your download.") + "\n" + "This torrents will be \
+ nice_need + "\n" + _("Available Space:") + " " + nice_free) paused" + "\n" + _("Space Needed:") + " " + nice_need + "\n" + _("Available \
Space:") + " " + nice_free)
gtk.gdk.threads_leave() gtk.gdk.threads_leave()
print "Not enough free space to resume this torrent!" print "Not enough free space to resume this torrent!"
else: #We're using compact allocation so lets just resume else: #We're using compact allocation so lets just resume