Skip to content

Commit

Permalink
Support qBittorrent 4.4.0 (Web API v2.8.4)
Browse files Browse the repository at this point in the history
 - torrents/info results can now be filtered by a torrent tag
 - Added new torrent state "Forced Metadata Downloading"
 - Support per-torrent/per-category "download folder"
  • Loading branch information
rmartin16 committed Jan 9, 2022
1 parent 41b9e28 commit c5dcbb6
Show file tree
Hide file tree
Showing 13 changed files with 506 additions and 83 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
LATEST_PYTHON_VERSION: "3.10"
LATEST_QBT_VERSION: 4.4.0rc1
QBT_ALWAYS_TEST: 4.4.0rc1, 4.3.9, 4.3.8, 4.3.5, 4.3.4.1, 4.3.3, 4.3.2, 4.3.1, 4.3.0.1, 4.2.0
QBT_ALWAYS_TEST: 4.4.0, 4.3.9, 4.3.8, 4.3.5, 4.3.4.1, 4.3.3, 4.3.2, 4.3.1, 4.3.0.1, 4.2.0
QT_USE_DEFAULT_PAA: 4.3.9, 4.3.8, 4.3.7, 4.3.6, 4.3.5, 4.3.4.1, 4.3.3, 4.3.2, 4.3.1, 4.3.0.1, 4.2.5, 4.2.0
SUBMIT_COVERAGE_VERSIONS: 2.7, 3.10
COMPREHENSIVE_TESTS_BRANCH: comprehensive_tests
Expand All @@ -32,8 +32,8 @@ jobs:
QBT_LEGACY_INSTALL: 4.2.5, 4.2.0
strategy:
matrix:
QBT_VER: [4.4.0rc1, 4.3.9, 4.3.8, 4.3.7, 4.3.6, 4.3.5, 4.3.4.1, 4.3.3, 4.3.2, 4.3.1, 4.3.0.1, 4.2.5, 4.2.0]
# QBT_VER: [4.4.0beta3]
QBT_VER: [4.4.0, 4.3.9, 4.3.8, 4.3.7, 4.3.6, 4.3.5, 4.3.4.1, 4.3.3, 4.3.2, 4.3.1, 4.3.0.1, 4.2.5, 4.2.0]
# QBT_VER: [4.4.0]
python-version: ["3.10", "3.9", "3.8", "3.7", "3.6", "2.7", "pypy2", "pypy3", "3.11.0-alpha.2"]
# python-version: [3.9]

Expand Down Expand Up @@ -129,6 +129,7 @@ jobs:
mkdir -p "$SRC_DIR" && mkdir -p "$QBT_DIR"
cd "$SRC_DIR"
rm -rf qBittorrent
git clone https://github.com/qbittorrent/qBittorrent.git --branch release-${{ matrix.QBT_VER }} --depth 1
cd qBittorrent
export libtorrent_CFLAGS="$LIBTOR_DIR/include/" && export libtorrent_LIBS="$LIBTOR_DIR/lib/libtorrent-rasterbar.so"
Expand All @@ -149,6 +150,7 @@ jobs:
mkdir -p "$SRC_DIR" && mkdir -p "$QBT_DIR"
cd "$SRC_DIR"
rm -rf qBittorrent
git clone https://github.com/qbittorrent/qBittorrent.git --branch release-${{ matrix.QBT_VER }} --depth 1
cd qBittorrent
cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$LIBTOR_DIR" -DVERBOSE_CONFIGURE=ON \
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 2022.1.27 (9 jan 2022)
- Support for qBittorrent v4.4.0
- torrents/info results can now be filtered by a torrent tag
- Added new torrent state "Forced Metadata Downloading"
- Support per-torrent/per-category "download folder"

Version 2021.12.26 (11 dec 2021)
- Stop sending Origin and Referer headers (Fixes #63)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ qBittorrent Web API Client

Python client implementation for qBittorrent Web API. Supports qBittorrent v4.1.0+ (i.e. Web API v2.0+).

Currently supports up to qBittorrent [v4.3.9](https://github.com/qbittorrent/qBittorrent/releases/tag/release-4.3.9) (Web API v2.8.2) released on Oct 31, 2021.
Currently supports up to qBittorrent [v4.4.0](https://github.com/qbittorrent/qBittorrent/releases/tag/release-4.4.0) (Web API v2.8.4) released on Jan 6, 2022.

[Find the full documentation for this client on RTD.](https://qbittorrent-api.readthedocs.io/)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Introduction

Python client implementation for qBittorrent Web API.

Currently supports up to qBittorrent `v4.3.9 <https://github.com/qbittorrent/qBittorrent/releases/tag/release-4.3.9>`_ (Web API v2.8.2) released on Oct 31, 2021.
Currently supports up to qBittorrent `v4.4.0 <https://github.com/qbittorrent/qBittorrent/releases/tag/release-4.4.0>`_ (Web API v2.8.4) released on Jan 6, 2022.

The full qBittorrent Web API documentation is available on their `wiki <https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)>`_.

Expand Down
2 changes: 2 additions & 0 deletions qbittorrentapi/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class TorrentStates(Enum):
ALLOCATING = "allocating"
DOWNLOADING = "downloading"
METADATA_DOWNLOAD = "metaDL"
FORCED_METADATA_DOWNLOAD = "forcedMetaDL"
PAUSED_DOWNLOAD = "pausedDL"
QUEUED_DOWNLOAD = "queuedDL"
FORCED_DOWNLOAD = "forcedDL"
Expand All @@ -74,6 +75,7 @@ def is_downloading(self):
return self in (
TorrentStates.DOWNLOADING,
TorrentStates.METADATA_DOWNLOAD,
TorrentStates.FORCED_METADATA_DOWNLOAD,
TorrentStates.STALLED_DOWNLOAD,
TorrentStates.CHECKING_DOWNLOAD,
TorrentStates.PAUSED_DOWNLOAD,
Expand Down
Loading

0 comments on commit c5dcbb6

Please sign in to comment.