Changeset 8eb215
- Timestamp:
- 01/16/2014 11:31:04 PM (12 years ago)
- Branches:
- 2.0.x, develop, master
- Children:
- b0c3c3
- Parents:
- 0a41b86
- git-author:
- Calum Lind <calumlind+deluge@gmail.com> (01/16/2014 04:48:32 PM)
- git-committer:
- Calum Lind <calumlind+deluge@gmail.com> (01/16/2014 11:31:04 PM)
- Location:
- deluge
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/core/filtermanager.py
r0a41b86 r8eb215 112 112 return filtered_torrent_ids 113 113 114 error_str = _("Error") + ":"115 114 # Check torrent's tracker_status for 'Error:' and return those torrent_ids 116 115 for torrent_id in torrent_ids: 117 if error_strin tm[torrent_id].get_status(["tracker_status"])["tracker_status"]:116 if "Error:" in tm[torrent_id].get_status(["tracker_status"])["tracker_status"]: 118 117 filtered_torrent_ids.append(torrent_id) 119 118 return filtered_torrent_ids -
deluge/core/torrentmanager.py
r0a41b86 r8eb215 973 973 974 974 # Set the tracker status for the torrent 975 torrent.set_tracker_status( _("Announce OK"))975 torrent.set_tracker_status("Announce OK") 976 976 977 977 # Check to see if we got any peer information from the tracker … … 991 991 992 992 # Set the tracker status for the torrent 993 torrent.set_tracker_status( _("Announce Sent"))993 torrent.set_tracker_status("Announce Sent") 994 994 995 995 def on_alert_tracker_warning(self, alert): … … 1000 1000 except RuntimeError: 1001 1001 return 1002 tracker_status = ' %s: %s' % (_("Warning"), decode_string(alert.message()))1002 tracker_status = 'Warning: %s' % decode_string(alert.message()) 1003 1003 # Set the tracker status for the torrent 1004 1004 torrent.set_tracker_status(tracker_status) … … 1011 1011 except RuntimeError: 1012 1012 return 1013 tracker_status = " %s: %s" % (_("Error"), decode_string(alert.msg))1013 tracker_status = "Error: %s" % decode_string(alert.msg) 1014 1014 torrent.set_tracker_status(tracker_status) 1015 1015 -
deluge/main.py
r0a41b86 r8eb215 141 141 def start_daemon(): 142 142 """Entry point for daemon script""" 143 deluge.common.setup_translations()144 143 145 144 if 'dev' not in deluge.common.get_version(): -
deluge/ui/gtkui/status_tab.py
r0a41b86 r8eb215 148 148 status["is_auto_managed"]=_("Off") 149 149 150 translate_tracker_status = { 151 "Error" : _("Error"), 152 "Warning" : _("Warning"), 153 "Announce OK" : _("Announce OK"), 154 "Announce Sent" : _("Announce Sent") 155 } 156 for key, value in translate_tracker_status.iteritems(): 157 if key in status["tracker_status"]: 158 status["tracker_status"] = status["tracker_status"].replace(key, value, 1) 159 log.error(status["tracker_status"]) 160 break 161 150 162 # Update all the label widgets 151 163 for widget in self.label_widgets: -
deluge/ui/web/js/deluge-all/details/StatusTab.js
r0a41b86 r8eb215 116 116 data.auto_managed = _((status.is_auto_managed) ? 'True' : 'False'); 117 117 118 var translate_tracker_status = { 119 'Error' : _('Error'), 120 'Warning' : _('Warning'), 121 'Announce OK' : _('Announce OK'), 122 'Announce Sent' : _('Announce Sent') 123 }; 124 for (var key in translate_tracker_status) { 125 if (data.tracker_status.indexOf(key) != -1) { 126 data.tracker_status = data.tracker_status.replace(key, translate_tracker_status[key]); 127 break; 128 } 129 } 130 118 131 data.downloaded += ' (' + ((status.total_payload_download) ? fsize(status.total_payload_download) : '0.0 KiB') + ')'; 119 132 data.uploaded += ' (' + ((status.total_payload_upload) ? fsize(status.total_payload_upload): '0.0 KiB') + ')';
Note:
See TracChangeset
for help on using the changeset viewer.