tag rc2
This commit is contained in:
parent
8730830470
commit
715e3ce463
File diff suppressed because it is too large
Load Diff
@ -41,10 +41,10 @@ namespace error
|
|||||||
system_category = ASIO_WIN_OR_POSIX(0, 0),
|
system_category = ASIO_WIN_OR_POSIX(0, 0),
|
||||||
|
|
||||||
/// Error codes from NetDB functions.
|
/// Error codes from NetDB functions.
|
||||||
netdb_category = ASIO_WIN_OR_POSIX(_system_category, 1),
|
netdb_category = ASIO_WIN_OR_POSIX(system_category, 1),
|
||||||
|
|
||||||
/// Error codes from getaddrinfo.
|
/// Error codes from getaddrinfo.
|
||||||
addrinfo_category = ASIO_WIN_OR_POSIX(_system_category, 2),
|
addrinfo_category = ASIO_WIN_OR_POSIX(system_category, 2),
|
||||||
|
|
||||||
/// Miscellaneous error codes.
|
/// Miscellaneous error codes.
|
||||||
misc_category = ASIO_WIN_OR_POSIX(3, 3),
|
misc_category = ASIO_WIN_OR_POSIX(3, 3),
|
||||||
|
|||||||
@ -1,13 +1,18 @@
|
|||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
template_dir = '~/prj/WebUi/templates/deluge'
|
template_dirs = ['~/prj/WebUi/templates/deluge',
|
||||||
template_dir = os.path.expanduser(template_dir )
|
'~/prj/WebUi/templates/advanced']
|
||||||
|
|
||||||
|
template_dirs = [os.path.expanduser(template_dir ) for template_dir in template_dirs]
|
||||||
|
|
||||||
|
|
||||||
files = [os.path.join(template_dir,fname)
|
files = []
|
||||||
for fname in os.listdir(template_dir)
|
for template_dir in template_dirs:
|
||||||
if fname.endswith('.html')]
|
files += [os.path.join(template_dir,fname)
|
||||||
|
for fname in os.listdir(template_dir)
|
||||||
|
if fname.endswith('.html')]
|
||||||
|
|
||||||
|
|
||||||
all_strings = []
|
all_strings = []
|
||||||
for filename in files:
|
for filename in files:
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
_('# Of Files')
|
_('# Of Files')
|
||||||
_('About')
|
_('About')
|
||||||
|
_('Add')
|
||||||
_('Add Torrent')
|
_('Add Torrent')
|
||||||
_('Add torrent')
|
_('Add torrent')
|
||||||
_('Apply')
|
_('Apply')
|
||||||
@ -13,6 +14,7 @@ _('Delete .torrent file')
|
|||||||
_('Delete downloaded files.')
|
_('Delete downloaded files.')
|
||||||
_('Details')
|
_('Details')
|
||||||
_('Disable')
|
_('Disable')
|
||||||
|
_('Down')
|
||||||
_('Down Speed')
|
_('Down Speed')
|
||||||
_('Download')
|
_('Download')
|
||||||
_('Downloaded')
|
_('Downloaded')
|
||||||
@ -27,19 +29,20 @@ _('Next Announce')
|
|||||||
_('Off')
|
_('Off')
|
||||||
_('Password')
|
_('Password')
|
||||||
_('Password is invalid,try again')
|
_('Password is invalid,try again')
|
||||||
|
_('Pause')
|
||||||
_('Pause all')
|
_('Pause all')
|
||||||
_('Peers')
|
_('Peers')
|
||||||
_('Pieces')
|
_('Pieces')
|
||||||
_('Progress')
|
_('Progress')
|
||||||
_('Queue Down')
|
_('Queue Down')
|
||||||
|
_('Queue Position')
|
||||||
_('Queue Up')
|
_('Queue Up')
|
||||||
_('Queue pos:')
|
|
||||||
_('Ratio')
|
_('Ratio')
|
||||||
_('Reannounce')
|
_('Reannounce')
|
||||||
_('Refresh page every:')
|
_('Refresh page every:')
|
||||||
_('Remove')
|
_('Remove')
|
||||||
_('Remove %s ')
|
_('Remove torrent')
|
||||||
_('Remove %s?')
|
_('Resume')
|
||||||
_('Resume all')
|
_('Resume all')
|
||||||
_('Seeders')
|
_('Seeders')
|
||||||
_('Set')
|
_('Set')
|
||||||
@ -47,11 +50,13 @@ _('Set Timeout')
|
|||||||
_('Share Ratio')
|
_('Share Ratio')
|
||||||
_('Size')
|
_('Size')
|
||||||
_('Speed')
|
_('Speed')
|
||||||
|
_('Start')
|
||||||
_('Submit')
|
_('Submit')
|
||||||
_('Torrent list')
|
_('Torrent list')
|
||||||
_('Total Size')
|
_('Total Size')
|
||||||
_('Tracker')
|
_('Tracker')
|
||||||
_('Tracker Status')
|
_('Tracker Status')
|
||||||
|
_('Up')
|
||||||
_('Up Speed')
|
_('Up Speed')
|
||||||
_('Upload')
|
_('Upload')
|
||||||
_('Upload torrent')
|
_('Upload torrent')
|
||||||
|
|||||||
@ -221,7 +221,7 @@ def get_torrent_status(torrent_id):
|
|||||||
|
|
||||||
url = urlparse(status.tracker)
|
url = urlparse(status.tracker)
|
||||||
if hasattr(url,'hostname'):
|
if hasattr(url,'hostname'):
|
||||||
status.category = url.hostname
|
status.category = url.hostname or 'unknown'
|
||||||
else:
|
else:
|
||||||
status.category = 'No-tracker'
|
status.category = 'No-tracker'
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ def get_torrent_status(torrent_id):
|
|||||||
return status
|
return status
|
||||||
|
|
||||||
def get_categories(torrent_list):
|
def get_categories(torrent_list):
|
||||||
trackers = [torrent['category'] for torrent in torrent_list]
|
trackers = [(torrent['category'] or 'unknown') for torrent in torrent_list]
|
||||||
categories = {}
|
categories = {}
|
||||||
for tracker in trackers:
|
for tracker in trackers:
|
||||||
categories[tracker] = categories.get(tracker,0) + 1
|
categories[tracker] = categories.get(tracker,0) + 1
|
||||||
|
|||||||
769
po/en_AU.po
769
po/en_AU.po
File diff suppressed because it is too large
Load Diff
765
po/en_CA.po
765
po/en_CA.po
File diff suppressed because it is too large
Load Diff
729
po/en_GB.po
729
po/en_GB.po
File diff suppressed because it is too large
Load Diff
715
po/pt_BR.po
715
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
731
po/zh_CN.po
731
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
731
po/zh_TW.po
731
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
2
setup.py
2
setup.py
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
NAME = "deluge"
|
NAME = "deluge"
|
||||||
FULLNAME = "Deluge BitTorrent Client"
|
FULLNAME = "Deluge BitTorrent Client"
|
||||||
VERSION = "0.5.6.95"
|
VERSION = "0.5.6.96"
|
||||||
AUTHOR = "Zach Tibbitts, Alon Zakai, Marcos Pinto, Andrew Resch, Alex Dedul"
|
AUTHOR = "Zach Tibbitts, Alon Zakai, Marcos Pinto, Andrew Resch, Alex Dedul"
|
||||||
EMAIL = "zach@collegegeek.org, kripkensteiner@gmail.com, marcospinto@dipconsultants.com, alonzakai@gmail.com, rotmer@gmail.com"
|
EMAIL = "zach@collegegeek.org, kripkensteiner@gmail.com, marcospinto@dipconsultants.com, alonzakai@gmail.com, rotmer@gmail.com"
|
||||||
DESCRIPTION = "A GTK BitTorrent client written in Python and C++"
|
DESCRIPTION = "A GTK BitTorrent client written in Python and C++"
|
||||||
|
|||||||
@ -32,7 +32,7 @@ import os
|
|||||||
import xdg.BaseDirectory
|
import xdg.BaseDirectory
|
||||||
|
|
||||||
PROGRAM_NAME = "Deluge"
|
PROGRAM_NAME = "Deluge"
|
||||||
PROGRAM_VERSION = "0.5.6.95"
|
PROGRAM_VERSION = "0.5.6.96"
|
||||||
|
|
||||||
CLIENT_CODE = "DE"
|
CLIENT_CODE = "DE"
|
||||||
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))
|
CLIENT_VERSION = "".join(PROGRAM_VERSION.split('.'))+"0"*(4 - len(PROGRAM_VERSION.split('.')))
|
||||||
|
|||||||
@ -516,7 +516,7 @@ def show_file_open_dialog(parent, title=None):
|
|||||||
chooser.set_select_multiple(True)
|
chooser.set_select_multiple(True)
|
||||||
if not common.windows_check():
|
if not common.windows_check():
|
||||||
chooser.set_icon(common.get_logo(32))
|
chooser.set_icon(common.get_logo(32))
|
||||||
chooser.set_property("skip-taskbar-hint", True)
|
chooser.set_property("skip-taskbar-hint", True)
|
||||||
|
|
||||||
response = chooser.run()
|
response = chooser.run()
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
@ -532,7 +532,7 @@ def show_directory_chooser_dialog(parent, title):
|
|||||||
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
|
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
|
||||||
if not common.windows_check():
|
if not common.windows_check():
|
||||||
chooser.set_icon(common.get_logo(32))
|
chooser.set_icon(common.get_logo(32))
|
||||||
chooser.set_property("skip-taskbar-hint", True)
|
chooser.set_property("skip-taskbar-hint", True)
|
||||||
config = pref.Preferences()
|
config = pref.Preferences()
|
||||||
chooser.set_current_folder(config.get("choose_directory_dialog_path"))
|
chooser.set_current_folder(config.get("choose_directory_dialog_path"))
|
||||||
if chooser.run() == gtk.RESPONSE_OK:
|
if chooser.run() == gtk.RESPONSE_OK:
|
||||||
|
|||||||
@ -168,23 +168,9 @@ class DelugeGTK:
|
|||||||
if self.manager.unique_IDs[unique_ID].uploaded_memory:
|
if self.manager.unique_IDs[unique_ID].uploaded_memory:
|
||||||
self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
|
self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
|
||||||
self.manager.unique_IDs[unique_ID].uploaded_memory
|
self.manager.unique_IDs[unique_ID].uploaded_memory
|
||||||
try:
|
if self.manager.unique_IDs[unique_ID].trackers_changed:
|
||||||
if self.manager.unique_IDs[unique_ID].trackers_changed:
|
self.manager.replace_trackers(unique_ID, \
|
||||||
try:
|
self.manager.unique_IDs[unique_ID].trackers)
|
||||||
self.manager.replace_trackers(unique_ID, \
|
|
||||||
self.manager.unique_IDs[unique_ID].trackers)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
except AttributeError:
|
|
||||||
try:
|
|
||||||
if self.manager.unique_IDs[unique_ID].trackers:
|
|
||||||
try:
|
|
||||||
self.manager.replace_trackers(unique_ID, \
|
|
||||||
self.manager.unique_IDs[unique_ID].trackers)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@ -61,9 +61,13 @@ class PluginManager:
|
|||||||
mod = __import__(modname, globals(), locals(), [''])
|
mod = __import__(modname, globals(), locals(), [''])
|
||||||
if 'deluge_init' in dir(mod):
|
if 'deluge_init' in dir(mod):
|
||||||
if modname != "TorrentPieces":
|
if modname != "TorrentPieces":
|
||||||
print "Initialising plugin",modname
|
print "Initialising plugin", modname
|
||||||
mod.deluge_init(path)
|
try:
|
||||||
self.available_plugins[mod.plugin_name] = mod
|
mod.deluge_init(path)
|
||||||
|
except:
|
||||||
|
print "Cant init plugin", modname
|
||||||
|
else:
|
||||||
|
self.available_plugins[mod.plugin_name] = mod
|
||||||
|
|
||||||
def get_available_plugins(self):
|
def get_available_plugins(self):
|
||||||
return self.available_plugins.keys()
|
return self.available_plugins.keys()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user