Commit Graph

15523 Commits

Author SHA1 Message Date
Yat Ho 4a37b979cc chore: bump libutp (#6251)
(cherry picked from commit cf077bbba0)
2024-01-25 20:40:56 +08:00
Yat Ho 71904b9de2 fix: keep peer io alive inside utp callback (#6507)
(cherry picked from commit a1160f1556)
2024-01-25 20:06:24 +08:00
Yat Ho 64b87b376f fix: always schedule uTP ack after receiving a packet (#6508)
* fix: always schedule uTP ack after receiving a packet

* chore: add comment to explain change

(cherry picked from commit 0ce4adf07c)
2024-01-25 20:06:23 +08:00
Yat Ho d5a555c6bb fixup! fix: implement proper download limit for uTP (#6416) (#6481)
(cherry picked from commit dce0d37130)
2024-01-25 20:06:22 +08:00
Yat Ho 2e34c6f820 fix: implement proper download limit for uTP (#6416)
* fix: return read buffer size in libutp read buffer size callback

* refactor: clamp amount of data processed in `can_read_wrapper()`

* chore: housekeeping

* refactor: call `utp_read_drained()` in on-read callback

so that uTP acks can be sent out in a more timely fashion

(cherry picked from commit 5000edef01)
2024-01-25 20:06:20 +08:00
Mike Gelfand 352fa985b2 Update pieces label on source change even if piece size doesn't change (#6516)
Label update is made when slider changes its value, and on source change
slider value is being set to a newly calculated, but not necessarily
different from the previous one, value. This means that the slider
change signal may not be emitted, in which case label continues to show
previous text, including "No source selected", which is misleading.
2024-01-14 11:12:42 -06:00
Yat Ho 1ccef92cdc fix: use one variable to store `TR_KEY_rpc_authentication_required` (#6514) 2024-01-09 23:13:28 -06:00
Yat Ho 22687c5480
fix: WebUI render html entity in torrent ratio (#6491) (#6500)
(cherry picked from commit 3b017dbd86)
2024-01-07 11:22:33 -06:00
Cœur 954c0d179f build: fix libtransmission build on very old cmake versions (#6418)
* Fix libtransmission build requirements

* code review: keeping compatibility with deprecated cmake
2024-01-06 13:31:38 -06:00
Mike Gelfand a8ae0e73be fix: a couple of logging format issues (#6463)
* Fix swapped log args in `do_log_system_error()`

* Fix invalid fmt use in `tr_rpc_server::load()` logging
2023-12-30 18:30:35 -06:00
Charles Kerr 387f0f8e74 fix: invalid TR_TORRENT_TRACKERS env var for some torrents (#6434) 2023-12-24 16:40:31 -06:00
Cœur e116672b27
fix: build error on GTKMM-4 (#6393) 2023-12-17 09:37:35 -06:00
Will Thompson 4d0f5c7b6c
GTK: Add missing 4.0.4 and 4.0.5 releases to metainfo (#6357)
* GTK: Improve appstream metainfo (#5407)

* gtk: Add release history to metainfo file

This is mandatory on Flathub (and possibly other software repositories).
On each new release, a <release> element should be prepended to this
list.

Ideally each <release> would include (translatable) release notes, but
this is the bare minimum.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-releases
https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html

* gtk: Add more URLs to AppStream metainfo

This covers all the URL types from the AppStream specification.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url

* gtk: Add translation info to AppStream metainfo

This allows information about per-language translation percentages to be
extracted at build-time and included in the repository's appstream file.
Software centres such as GNOME Software use this to indicate to the user
whether the app is translated into their language.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-translation
(cherry picked from commit dd22b52bbf)

* GTK: Add 4.0.4 and 4.0.5 releases to metainfo
2023-12-08 09:54:18 -06:00
Charles Kerr a6fe2a64aa chore: bump version to 4.0.5 2023-12-06 17:11:58 -06:00
Charles Kerr 83e1861736
docs: 4.0.5 release notes (#6346) 2023-12-06 17:10:11 -06:00
Charles Kerr d1333e6aa1
fix: crash after nullptr dereference in rpcimpl (#6177) (#6348)
Co-authored-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2023-12-06 15:24:13 -06:00
Charles Kerr 782114798b
chore: update webapp (#6347)
* chore: remove old REAMDE (superceded by README.md)

* chore: rebuild webapp
2023-12-06 15:22:31 -06:00
Charles Kerr f7f6ff23e2 docs: add web/README.md with instructions on building without Node.js 2023-12-04 10:39:34 -06:00
Cœur 172418e3b6 fix: broken UI and windows on macOS Sonoma (#6016) 2023-12-03 15:58:39 -06:00
Cœur 89cfd0ceb9 fix: larger display group name (#6104) 2023-12-03 15:55:12 -06:00
Dzmitry Neviadomski bd31d80500 fix: crash when selecting file from recently used in gtk file chooser (#6131) 2023-12-03 15:54:47 -06:00
Charles Kerr 2e2c86060b fix: in RPC, default to sort torrents by id (#5604)
When getting all torrents in a batch over RPC, the results are sorted by
info-dict hash. Prior to 4.0.0, they were sorted by ID. This change broke
some peoples' workflows.

I'm OK with breaking workflows if it's necessary to improve the program,
but this was an unintentional side-effect and I don't see any inherent
benefit to either sort order. So this PR restores the 3.00 sort order.

https://xkcd.com/1172/
2023-12-03 15:52:43 -06:00
Charles Kerr 4b10f67ad1 fix: only append '.added' suffix to watchdir files (#5705) 2023-12-03 15:46:45 -06:00
chantzish 4da965365c fix: magnet data invalidation of tracker IDs (#5957) 2023-11-03 12:57:46 -05:00
Yat Ho 4bb205d440 fix: workaround HSTS upgrading to HTTPS for HTTP trackers (#5969) 2023-11-03 12:57:32 -05:00
hgy59 bcab17f963 fix: tr_sys_path_copy in file-posix.cc for some Synology Devices (#5966) (#5974) 2023-11-03 12:56:36 -05:00
Yat Ho a5d4b5903d fix: formatting cmdline help message (#6174) 2023-11-03 12:53:38 -05:00
Dzmitry Neviadomski df38c1df94
fix: do not use get_files2 in 4.0.x branch (#6144)
Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2023-10-20 20:35:41 -05:00
Dzmitry Neviadomski b7f3e94700
fix: crash when selecting file from recently used in gtk file chooser (#6131) (#6142)
(cherry picked from commit 0faad14086)
2023-10-20 19:10:44 -05:00
Yat Ho 90b86a17d8
fix: encode `ip` in network byte order for udp announce (#6126) (#6132)
* fix: encode `ip` in network byte order for udp announce (#6126)

(cherry picked from commit c70c49e87b)

* fixup! fix: encode `ip` in network byte order for udp announce (#6126)
2023-10-20 11:32:42 -05:00
Yat Ho ba36954c6c
fix: only consider piece data in bandwidth limit (#6082) (#6134)
* fix: only consider piece data in bandwidth limit

* refactor: remove unused `tr_bandwidth::clamp()` signature

(cherry picked from commit 43aff088d8)
2023-10-20 11:23:00 -05:00
Yat Ho cf6691acca
fix: json string serializer improperly escaping characters (#6005) (#6133)
* feat: escape json string according to RFC8259

* fix: do not append newline when json serde is in compact mode

* fix: json tests

1. Use the same locale settings as the apps
2. Added additional test case for a string that are known to be prone to locale issues
3. Removed test for escaping non-BMP characters to UTF-16 escape sequences

* chore: add more test cases to `JSONTest.testUtf8`

* chore: order cases in the same order as RFC8259

(cherry picked from commit 0259edbaf3)
2023-10-20 11:21:51 -05:00
Cœur 55edc9f628
Fix macOS 14 UI not clipping views and crashing on window restoration (#6051) 2023-09-30 16:16:17 -05:00
Charles Kerr 24077e3511 chore: bump version to 4.0.4 2023-08-23 17:48:58 -05:00
Charles Kerr befbeccb2c docs: update release notes for 4.0.4 (#5924) 2023-08-23 17:48:10 -05:00
Charles Kerr 9a399bae06 chore: rebuild transmission-app.js 2023-08-21 13:33:05 -05:00
Gary Elshaw b8235ea317 fix: improve resolution of Qt app icon (#5570) 2023-08-21 13:32:40 -05:00
Gary Elshaw 22e1dae57e fix: web ui start/pause button icon size (#5771) 2023-08-21 13:32:23 -05:00
Gary Elshaw 549487d268 fix: add missing tooltip for 'remove torrent' button (#5777) 2023-08-21 13:30:51 -05:00
Charles Kerr e80c933284 chore: rebuild transmission-app.js 2023-08-20 21:40:07 -05:00
Rukario 1458a7266a fix: overflow-menu and context-menu positioning for small viewports (#5827) 2023-08-20 21:39:41 -05:00
Charles Kerr b8802aebb5
fix: announce LDP on listening interface (#5875) (#5896) 2023-08-13 22:02:54 -05:00
Zhenyu Qi daff66690a fix: announce with query replace bug (#5871) 2023-08-13 19:28:35 -05:00
Cœur 03ffe42ad4 fix: -fobjc-arc with GCC (#5632) 2023-07-29 20:58:38 -05:00
Charles Kerr 98f112c6bc chore: regenerate transmission-app.js 2023-07-28 13:00:37 -05:00
Derek Reiff f52785af6c Add readme with light setup instructions; minor UI tweaks (#5814)
* Add readme with light setup instructions; tweak ui

These are very minor changes that cover a few issues:

- WebUI Peer list too narrow #4209

On very small screens (for-phone-only), we modify width on some fields for less overlap. But we also truncate using `text-overflow: ellipsis` and `overflow-x: hidden`.

- properly style up/down speed icons

Moved SVG contents into index.html so we can make these style changes based on the `prefers-color-scheme` media query.

I also set a min-width, text-align: right on the download/upload label so they aren't shifting when going from 1 kB/s to 800 Mb/s.

- Add README for `web` directory

It made sense to add some super simple getting-started instructions for the directory.

- Limit input width in Add dialog of Web #5639

Add a width to the open-torrent file input, but also increase the modal dialog container size.

* Add bookmarklet for anonymizing screenshots

I see a lot of blurring going on in screenshots for issues and PRs, so this is a quick little bookmarklet trick to add lorem ipsum text to torrent-names.
2023-07-28 13:00:27 -05:00
tearfur e8ef1f3d38 fix: disregard locale when building LDP announce message (#5825) 2023-07-28 10:33:25 -05:00
tearfur 264746959b fix: clamp down harder for upload as well (#5821) 2023-07-25 11:57:21 -05:00
tearfur de26f38c77 perf: reduce copying in `enforceSwarmPeerLimit()` (#5731)
* reduce copying in `enforceSwarmPeerLimit()`

* clearer comparator naming
2023-07-14 19:55:36 -05:00
Charles Kerr 14e31babbb perf: faster Cache::write_contiguous() (#5715) 2023-07-02 15:24:49 -05:00