* Now copies all proxy settings from peer to other types to reflect
how that the single undelying libtorrent proxy is set.
* Grey-out the other proxies types in GTKUI to avoid some confusion.
* In torrentview.stop the listview is cleared however this meant in thinclient mode
that listview sort details are empty and overwrites existing data when save_state is
then called in torrentview.shutdown.
- Using DYLD_LIBRARY_PATH seems to have the unintended effect of making associated apps
unusable (unable to locate dylds) when opening a file from within Deluge. The workaround
for now is to switch to using DYLD_FALLBACK_LIBRARY_PATH.
* A bug in libtorrent means that a magnet with a trailing newline will be added
but with an invalid info_hash. Strip any whitespace before add is a workaround.
* use splitlines to remove line endings so filter with len works as intended.
* use a short form of the magnet hash so the resulting filename will be unique
and prevent potential overwriting of other files.
* verify magnet is valid
* The default piece priority was changed in lt 1.1 from 1 to 4
so in 1.3 we will simple convert them back to 1 as 4 is not used.
* The set_file_priorities method was refactored to make the changes simpler.
* Revert changes made to fix 'too many files open' as Image.open does
not return a file descriptor and generated the following error:
exceptions.AttributeError: 'NoneType' object has no attribute 'startswith'
* Also fix style for raising an exception.
* A UnicodeDecodeError can occur if creating a string using translated
text but we should not be translating anything in core anyway so
remove the markup and do the translating in UI.
* A torrent file contains an uncommon field 'filehash' which must be hex encoded
to allow dumping the torrent info to json. Otherwise it will fail with:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe5 in position 0: invalid continuation byte
* Copy-pasting from web page can include extra space at end of string.
* Also make minor change to populate the magnet name with infohash
for nicer UI display.
* Ensure all file descriptors are closed. Using the with statement ensures
closure and adding 'from __future__ ...' for Python 2.5 compatibility.
* The main problem was with thousands of unclosed file desciptors from
tracker_icons mkstemp.
* Use a prefix 'deluge_ticon.' to identify created tracker_icon tmp files.