Commit graph

7000 commits

Author SHA1 Message Date
Calum Lind
9bec5142c7 Update Changelog and bump version to 1.3.14
- Minify js files
2017-03-06 09:56:20 +00:00
Calum Lind
0f1f62ec62 Update translation files 2017-03-06 09:53:07 +00:00
Calum Lind
318ab17986 [WebUI] Only accept application/json content-type requests
- Protects against CSRF (Cross-site request forgery)
2017-03-01 14:35:49 +00:00
Calum Lind
25150f13af [Core] Catch None type country in get_peers 2017-02-23 19:18:01 +00:00
Calum Lind
7cde3efb94 [#2976] [Console] Fix help showing usage details 2017-02-22 23:28:27 +00:00
Calum Lind
7f01dc909e [#2879] [OSX] Fix dyld error opening file from within Deluge
- 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.
2017-02-22 11:24:45 +00:00
Calum Lind
10ebf9b0b0 Fix mistakes in commit 42ba908
commit accidentally pushed before being tested
2017-02-21 10:36:04 +00:00
Calum Lind
3ba5443c76 [#2826] Fix create_torrent filedump not encoded 2017-02-20 22:40:14 +00:00
Calum Lind
c39f00fa0b [WebUI] Log successful logins with associated ip 2017-02-20 18:47:25 +00:00
Calum Lind
3962c41a55 [Core] Switch move_storage flag to dont_replace 2017-02-20 18:47:25 +00:00
Calum Lind
42ba9086d0 [#2956] Fix empty file_priorities with magnets 2017-02-20 16:25:08 +00:00
Calum Lind
2d4dec669e [AutoAdd] Remove duplicate magnet extension when splitting 2017-02-20 13:22:47 +00:00
Calum Lind
bcf0fe4a61 [#2957] [GTKUI] Fix AttributeError in torrentview column sort 2017-02-20 10:02:54 +00:00
Calum Lind
1dc4c465c7 [#2964] Fix TypeError when checking auth level in RPC Server
- self.factory.authorized_sessions requires tuple of (int, string).
2017-02-20 09:44:32 +00:00
Calum Lind
b52de1549e [Core] Fix adding magnet with trailing newline
* 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.
2017-02-15 23:33:28 +00:00
Calum Lind
8a3f15e5c0 [Autoadd] Fixes for splitting magnets from file
* 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
2017-02-14 18:37:20 +00:00
Calum Lind
8565eccb3d [#2149] [Core] Fix for overwriting single proxy in lt>=0.16 2017-01-30 10:36:33 +00:00
Calum Lind
30eaf775c2 [#2948] [Console] Fix decode error comparing non-ascii (str) torrent name 2017-01-18 11:11:00 +00:00
Calum Lind
ffb1316f09 [#2861] [Core] Add support for python-geoip 2017-01-17 09:28:46 +00:00
Calum Lind
bd80ad62a0 [Core] Fix return type in t.get_file_progress 2017-01-17 09:20:11 +00:00
Calum Lind
78851becf2 [#2946] Workaround 1.1 libtorrent default piece priority
* 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.
2017-01-17 09:20:11 +00:00
Calum Lind
af76abb038 [UI] Fix usage of 'with Image.open' in trackericons
* 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.
2017-01-11 22:56:05 +00:00
Calum Lind
bf01b53bda [WebUI] Fix missing self.interface attribute for 8a48ec012 2017-01-11 13:00:28 +00:00
Calum Lind
8a48ec0126 [#2951] [#1908] [WebUI] Add bind interface option for server 2017-01-10 20:20:44 +00:00
Calum Lind
c3a02e5291 [#2888] [WebUI] Fix shift-click in FilesTab 2017-01-10 17:30:35 +00:00
Calum Lind
3c1995476d [#2953] Fix except variable typo 2017-01-09 17:55:52 +00:00
Calum Lind
48cedf635f [GTKUI] [WEBUI] Add tracker_status translation to UIs 2016-11-30 13:29:33 +00:00
Calum Lind
0b4627be8a [#2941] Remove tracker_status translation markup from core
* 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.
2016-11-30 13:29:33 +00:00
Calum Lind
739537f860 [#2942] Catch file_progress IndexError when checking a torrent 2016-11-30 11:54:59 +00:00
bendikro
df88c82265 [#2784] Fix typo in bugfix 5f92810f 2016-11-01 11:59:52 +00:00
bendikro
5394ac5604 [#2875][Web] Fix: WebUI Json dumps Error
* 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
2016-10-19 11:58:03 +01:00
Calum Lind
f739269dfd [GTKUI] Autofill infohash entry from clipboard 2016-10-18 19:20:47 +01:00
Calum Lind
f57ee74ee2 [#2901] [GTKUI] Strip whitespace from infohash entry before checks
* 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.
2016-10-18 19:14:51 +01:00
Calum Lind
798f5e2deb [#2889] Fix for UnboundLocalError in exception handler 2016-10-17 12:49:22 +01:00
Calum Lind
a7fe4d4510 [#2889] Fixes for 'Too many files open' error
* 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.
2016-10-17 12:46:28 +01:00
Calum Lind
6c73105a73 [#2882] [Core] Nicer log message about missing GeoIP support in lt 1.1.1 2016-09-28 10:36:06 +01:00
Calum Lind
e66be42c81 [#2768] [GTKUI] [OSX] Fix invalid file error at startup
When installed to the system, not using .app, error is raised on startup
as nsapp_open_file is ignoring Deluge-bin but not deluge or deluge-gtk for
potential 'filename' when connecting NSApplicationOpenFile.
2016-07-20 20:31:40 +01:00
Calum Lind
2263463114 Bump version to 1.3.13 and update dates 2016-07-20 15:23:28 +01:00
Calum Lind
454c7be364 Revert "[#2852] Set maximum supported libtorrent version to 1.0.x"
This reverts commit 852b51f224.

Changes applied for libtorrent 1.1.1 release should bring back
backward compatibility for Deluge 1.3.
2016-07-19 20:06:27 +01:00
Calum Lind
85fdacc0e7 [Changelog] Update with recent changes 2016-07-19 17:38:15 +01:00
Calum Lind
869dbab459 [WebUI] Compress javascript files 2016-07-19 17:37:43 +01:00
Calum Lind
852b51f224 [#2852] Set maximum supported libtorrent version to 1.0.x 2016-07-19 15:20:38 +01:00
Calum Lind
492ad07965 [#2293] [WebUI] Fix plugins not loading when using WebUI plugin
- Any plugins that were started before the WebUI plugin would not be loaded
   upon starting the web server and would be not show up. The fix is to use
   web.pluginmanager.start to get all enabled plugins from core.
 - Update log message output for enable/disable in pluginmanager.
 - Deregister plugin events on json_api disable.
2016-07-19 15:04:50 +01:00
Calum Lind
904a51835b [#2857] [Notification] Fix issues with SMTP port input 2016-07-19 12:56:33 +01:00
Calum Lind
d38b8fc45c [#2855] [WebUI] Unable to add UDP trackers 2016-07-19 11:50:26 +01:00
Calum Lind
5f92810f76 [#2784] [Execute] Escape ampersand in args for Windows
Due to the nature of passing a command and args to cmd.exe and then
to a batch file in Windows any ampersands in execute args need to be
double-escaped so prefixing with tripe-caret (^^^&) is the fix for this.
2016-06-29 23:25:30 +01:00
Calum Lind
34e12fcb38 [Translations] Update po's, pot and gettext.js 2016-06-19 12:30:30 +01:00
Calum Lind
f769afd3ac [WebUI] Compress javascript 2016-06-19 12:30:29 +01:00
Calum Lind
e1d78c3de6 [Changelog] Add recent changes 2016-06-19 12:30:05 +01:00
Calum Lind
15a4023208 [#2077] [Extractor] Ignore the remaining rar part files
* Bump version to 0.6
2016-06-10 16:14:52 +01:00