Commit graph

7032 commits

Author SHA1 Message Date
Cyker Way
e050905b29 Save copies of torrent files from magnet links.
This patch is meant for 1.3-stable (1.3.15 as of the commit date).

The bug is: when you add a new magnet link to download, even if you tick
the option *Copy of .torrent files to:*, deluge still fails to save a
copy of torrent. This patch adds extra code to do so.
2018-09-26 14:27:04 +01:00
Calum Lind
6c3442e7e7 Compress pngs with Zopflipng 2018-06-22 08:31:22 +01:00
Calum Lind
993abbc6a6 [#3130|GTKUI] Add deluge-panel for systray
To help theme deluge systray icon use a separate icon.
2018-06-21 15:08:45 +01:00
Calum Lind
a2fcebe15c [WebUI] Encode HTML entitiies
Ensure that torrent keys that could contain HTML entities are encoded
when displayed in webui.
2018-02-04 21:42:16 +00:00
Calum Lind
b8e5ebe822 [Console] Refactor console config command for windows paths
Parse windows paths regardless of console running on a windows machine.
2017-11-05 17:28:09 +00:00
Calum Lind
e33a8fbea4 [#3075|Console] Fix config handling windows paths
The console config token parser was unable to handle windows paths
starting with 'C:'.
2017-11-05 15:27:09 +00:00
Calum Lind
bcc7a74725 [#3112|Console] Fix handling hex for setting peer_tos in config
The token parser was converting hex value to int which is not what
should be passed onto libtorrent peer_tos setting.
2017-10-29 22:11:11 +00:00
Calum Lind
ffb8d9f8c3 [#3070] Fix httpdownloader error with missing content-disposition filename
The parsing of the content-disposition in httpdownloader was not able to
handle missing parameters e.g. "Content-Disposition: attachment" and would
result in an IndexError. Added a test for this use-case.

Fixed the issue using the cgi.parse_header to extract the parameters.
2017-10-29 12:34:31 +00:00
Calum Lind
396417bcd0 [#3124|GTKUI] Fix comparing Name str if value is None
The original fix was not correct as the strcoll function cannot
accept None only strings. This fix ensures that the value is an
empty string if None for comparison.
2017-10-29 11:16:21 +00:00
Calum Lind
b13da8a42a [#3010|GTKUI] Handle unknown OverflowError from twisted reactor 2017-10-29 10:46:26 +00:00
Calum Lind
415979e2f7 [#3066] [Core] Add extra DHT bootstrap nodes 2017-10-29 10:08:36 +00:00
Calum Lind
5f0694deb2 [#3044] [Core] Ignore resume data timestamps on startup
The timestamps of torrent data files are being modified after the
resume data is stored and upon resuming an error is raised because
the files fail resume data checks. So ignore this check as it is
not reliable.
2017-10-29 10:04:05 +00:00
Calum Lind
6d14be18b0 [#3079] Fix config parsing for json objects
* If a curly brace was used in a string then find_json_ojects would
   fail to find objects correctly. To fix this ignore double-quoted entries.
2017-06-28 10:39:20 +01:00
Calum Lind
65fac156eb [#3064|WebUI] Fix server not sending TLS intermediate certs
* Sending of cert chain was unintentionallly removed in commit c1902e43 (#2792).
2017-06-15 13:59:05 +01:00
Calum Lind
956f2ad574 [AutoAdd] Fix version string 2017-06-14 10:59:13 +01:00
Rato
275c93657f [Core] Save torrent state only if state has changed 2017-06-13 06:53:10 +02:00
Calum Lind
38d7b7cdfd [GTKUI] Fix keyerror showing prefs
* Fix the single_proxy ui to True as unlikely any users using <=0.15
   and need to have different proxy type settings.
2017-05-13 00:08:23 +01:00
Calum Lind
7661127b9d Fix 1.3.15 release date in changelog 2017-05-12 17:39:22 +01:00
Calum Lind
a6e8ac8725 Update Changelog and bump release to 1.3.15 2017-05-12 13:57:19 +01:00
Calum Lind
d91584b700 [#3012] [GTKUI] Consistent button position on Windows
* The deluge custom gtkui dialog buttons are not currently setup to
   use the Windows-style button ordering so disable this option.
2017-05-03 15:26:59 +01:00
Calum Lind
5427cbb73a Update translations 2017-05-03 10:51:59 +01:00
Calum Lind
d977915f32 [#2991] Fix display/setting single proxy in UIs
* 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.
2017-05-03 10:27:46 +01:00
Calum Lind
a86b6f0f8f [GTKUI] Fix column sort state not saved in Thinclient mode
* 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.
2017-05-02 12:40:20 +01:00
Calum Lind
3dfe6af1ee [Label] Fix namespace issue in js 2017-04-11 18:04:47 +01:00
Calum Lind
1f315a9ef0 Fix except statements for Py2.5 compat 2017-04-01 11:38:28 +01:00
Calum Lind
08c03d7678 [#2786] [GTKUI] Fix showing connection manager with malformed ip 2017-03-29 16:48:43 +01:00
Calum Lind
dd08cb29e5 [#3008] [Core] Fix datetime objects in tracker items breaking UIs 2017-03-29 14:43:19 +01:00
Calum Lind
909176e9aa [#2866] Tray menu rename All to Session 2017-03-29 14:43:04 +01:00
Calum Lind
85eeadcfca [Plugins] Add webui pref pages for Label and Autoadd
* Add info-only preference pages for these plugins in WebUI.
2017-03-29 14:42:02 +01:00
Calum Lind
f870741d9d [#2913] [Notifications] Fix webui passing string for port value 2017-03-20 18:51:43 +00:00
Calum Lind
cc69c9c85b [#2990] [Core] Fix torrent priorities mismatch
* The old priorities instead of updated call to lt were being saved to self.options.
2017-03-20 08:29:45 +00:00
Kyle Neideck
41acade01a [WebUI] Check render template files exist and raise 404 if not
- Check render/* requests match to .html files in the 'render' dir
 - Protects against directory (path) traversal
2017-03-16 17:34:26 +00:00
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