mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
When a category's download path option is set to "Default", its `downloadPath` is serialized into JSON as `undefined`. This results in the `downloadPath` field being omitted from `torrents/categories` and `torrents/maindata` payloads (as is expected with an `undefined` value).
The use of `undefined` here causes an issue in the WebUI. Specifically, when the category previously contained a value for this field (i.e. download path option set to either "Yes" or "No"), the `processMap` logic in `SyncController` does not detect the removal this field. This results in the category's new `downloadPath` not being properly sent to the client. By switching from `undefined` to `null`, we ensure that the `downloadPath` value is always included in the category's payload. This allows `processMap` to properly detect whenever the value changes.
This change is backwards compatible with existing categories.json files. Older qBittorrent versions should also be able to parse new categories.json files containing `null`.
More context: cd3fbfbf9b (r2173148696)
PR #22958.
2.6 KiB
2.6 KiB
WebAPI Changelog
2.11.10
- #22932
torrents/categoriesandsync/maindatanow serialize categories'downloadPathtonull, rather thanundefined
2.11.9
- #21015
- Add
torrents/fetchMetadataendpoint for retrieving torrent metadata associated with a URL - Add
torrents/parseMetadataendpoint for retrieving torrent metadata associated with a .torrent file - Add
torrents/saveMetadataendpoint for saving retrieved torrent metadata to a .torrent file torrents/addallows adding a torrent with metadata previously retrieved viatorrents/fetchMetadataortorrents/parseMetadatatorrents/addallows specifying a torrent's file priorities
- Add
- #22698
torrents/addTrackersandtorrents/removeTrackersnow accepthash=alland adds/removes the tracker to/from all torrents- For compatibility,
torrents/removeTrackersstill acceptshash=*internally we transform it intoall
- For compatibility,
- Allow passing a pipe (
|) separated list of hashes inhashfortorrents/addTrackersandtorrents/removeTrackers
2.11.8
- #21349
- Handle sending
204 No Contentstatus code when response contains no data- Some endpoints still return
200 OKto ensure smooth transition
- Some endpoints still return
- Handle sending
- #22750
torrents/infoallows an optional parameterincludeFilesthat defaults tofalse- Each torrent will contain a new key
fileswhich will list all files similar to thetorrents/filesendpoint
- Each torrent will contain a new key
- #22813
app/getDirectoryContentallows an optional parameterwithMetadatato send file metadata- Fields are
name,type,size,creation_date,last_access_date,last_modification_date - See PR for TypeScript types
- Fields are
2.11.7
- #22166
sync/maindatareturns 3 new torrent fields:has_tracker_warning,has_tracker_error,has_other_announce_error
2.11.6
- #22460
app/setPreferencesallows only one ofmax_ratio_enabled,max_ratioto be presentapp/setPreferencesallows only one ofmax_seeding_time_enabled,max_seeding_timeto be presentapp/setPreferencesallows only one ofmax_inactive_seeding_time_enabled,max_inactive_seeding_timeto be present