diff --git a/resources/clients/qbittorrent-4.3.0.1.client b/resources/clients/qbittorrent-4.3.0.1.client new file mode 100644 index 0000000..446966f --- /dev/null +++ b/resources/clients/qbittorrent-4.3.0.1.client @@ -0,0 +1,30 @@ +{ + "keyGenerator": { + "algorithm": { + "type": "HASH_NO_LEADING_ZERO", + "length": 8 + }, + "refreshOn": "TORRENT_PERSISTENT", + "keyCase": "upper" + }, + "peerIdGenerator": { + "algorithm": { + "type": "REGEX", + "pattern": "-qB4301-[A-Za-z0-9_~\\(\\)\\!\\.\\*-]{12}" + }, + "refreshOn": "NEVER", + "shouldUrlEncode": false + }, + "urlEncoder": { + "encodingExclusionPattern": "[A-Za-z0-9_~\\(\\)\\!\\.\\*-]", + "encodedHexCase": "lower" + }, + "query": "info_hash={infohash}&peer_id={peerid}&port={port}&uploaded={uploaded}&downloaded={downloaded}&left={left}&corrupt=0&key={key}&event={event}&numwant={numwant}&compact=1&no_peer_id=1&supportcrypto=1&redundant=0", + "numwant": 200, + "numwantOnStop": 0, + "requestHeaders": [ + { "name": "User-Agent", "value": "qBittorrent/4.3.0.1" }, + { "name": "Accept-Encoding", "value": "gzip" }, + { "name": "Connection", "value": "close" } + ] +} diff --git a/resources/clients/qbittorrent-4.3.0.client b/resources/clients/qbittorrent-4.3.0.client new file mode 100644 index 0000000..a38bbdc --- /dev/null +++ b/resources/clients/qbittorrent-4.3.0.client @@ -0,0 +1,30 @@ +{ + "keyGenerator": { + "algorithm": { + "type": "HASH_NO_LEADING_ZERO", + "length": 8 + }, + "refreshOn": "TORRENT_PERSISTENT", + "keyCase": "upper" + }, + "peerIdGenerator": { + "algorithm": { + "type": "REGEX", + "pattern": "-qB4300-[A-Za-z0-9_~\\(\\)\\!\\.\\*-]{12}" + }, + "refreshOn": "NEVER", + "shouldUrlEncode": false + }, + "urlEncoder": { + "encodingExclusionPattern": "[A-Za-z0-9_~\\(\\)\\!\\.\\*-]", + "encodedHexCase": "lower" + }, + "query": "info_hash={infohash}&peer_id={peerid}&port={port}&uploaded={uploaded}&downloaded={downloaded}&left={left}&corrupt=0&key={key}&event={event}&numwant={numwant}&compact=1&no_peer_id=1&supportcrypto=1&redundant=0", + "numwant": 200, + "numwantOnStop": 0, + "requestHeaders": [ + { "name": "User-Agent", "value": "qBittorrent/4.3.0" }, + { "name": "Accept-Encoding", "value": "gzip" }, + { "name": "Connection", "value": "close" } + ] +} diff --git a/scripts/bittorrent-client-update-detector/qBittorrent.sh b/scripts/bittorrent-client-update-detector/qBittorrent.sh index b7e5709..9e342b4 100644 --- a/scripts/bittorrent-client-update-detector/qBittorrent.sh +++ b/scripts/bittorrent-client-update-detector/qBittorrent.sh @@ -54,7 +54,7 @@ echo "User-Agent is: $user_agent" # extract beginning of peer_id bt_peer_id_small_name=$(grep "PEER_ID\[\] =" $qBittorrentTempFolder/src/base/bittorrent/session.cpp | cut -d '=' -f 2 | tr -d '[:space:]' | tr -d '[";]') -if [ $(grep -c "libt::generate_fingerprint(PEER_ID, QBT_VERSION_MAJOR, QBT_VERSION_MINOR, QBT_VERSION_BUGFIX, QBT_VERSION_BUILD);" $qBittorrentTempFolder/src/base/bittorrent/session.cpp) -lt 1 ]; then +if [ $(grep -c "lt::generate_fingerprint(PEER_ID, QBT_VERSION_MAJOR, QBT_VERSION_MINOR, QBT_VERSION_BUGFIX, QBT_VERSION_BUILD);" $qBittorrentTempFolder/src/base/bittorrent/session.cpp) -lt 1 ]; then echo "WHHHHHOOOOPS, the peerid prefix generator might have changed." exit 1 fi