+ Reply to Thread
Results 1 to 10 of 10

Thread: qBittorrent

  1. #1
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188

    qBittorrent

    Please before reading this thread, read Client file format.

    Since BitTorrent clients are updated regularly, i'll post the default file template for qbittorrent. And will list any changes for a particular version against this default template.

    Default template
    Code:
    {
        "keyGenerator": {
            "length": 8,
            "type": "hash_no_leading_zero",
            "refreshOn": "TORRENT_PERSISTENT",
            "case": "upper"
        },
        "peerIdGenerator": {
            "pattern": "xxxxxxxxxxxxxxxx",
            "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": "Host", "value": "xxxxx"},
            { "name": "User-Agent", "value": "xxxxxxxxxxxxxxxx" },
            { "name": "Accept-Encoding", "value": "gzip" },
            { "name": "Connection", "value": "close" }
        ]
    }
    4.1.4
    peerIdGenerator.pattern: -qB4160-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.6

    4.1.5
    peerIdGenerator.pattern: -qB4150-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.5

    4.1.4
    peerIdGenerator.pattern: -qB4140-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.4

    4.1.3
    peerIdGenerator.pattern: -qB4130-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.3

    4.1.2
    peerIdGenerator.pattern: -qB4120-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.2

    4.1.1
    peerIdGenerator.pattern: -qB4110-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.1

    4.1.0
    peerIdGenerator.pattern: -qB4100-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.1.0

    4.0.4
    peerIdGenerator.pattern: -qB4040-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.0.4

    4.0.3
    peerIdGenerator.pattern: -qB4030-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.0.3

    4.0.2
    peerIdGenerator.pattern: -qB4020-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.0.2

    4.0.1
    peerIdGenerator.pattern: -qB4010-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.0.1

    4.0.0
    peerIdGenerator.pattern: -qB4000-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/4.0.0

    3.3.16
    peerIdGenerator.pattern: -qB33G0-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/3.3.16

    3.3.15
    peerIdGenerator.pattern: -qB33F0-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/3.3.15

    3.3.14
    peerIdGenerator.pattern: -qB33E0-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/3.3.14

    3.3.13
    peerIdGenerator.pattern: -qB33D0-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent/3.3.13

    3.3.7
    peerIdGenerator.pattern: -qB3310-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent v3.3.7

    3.3.1
    peerIdGenerator.pattern: -qB3310-[A-Za-z0-9_~\(\)\!\.\*-]{12}
    requestHeaders.User-Agent: qBittorrent v3.3.1


    If you want to get the "user-agent", "peer_id prefix" and "key algorithm" for the latest qBittorrent release you can also download and use my bash script that parse the qBittorrent source code from Github, download here

    Download both qBittorrent.sh and libtorrent_funcs.sh and then run qBittorrent.sh with bash.

    Click image for larger version. 

Name:	2019-07-02 22_54_32-MINGW64__d_Users_raymo_IdeaProjects_joal_scripts_bittorrent-client-update-de.png 
Views:	67 
Size:	3.8 KB 
ID:	20149
    Last edited by anthony-joal; 02.07.19 at 23:58.
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  2. Who Said Thanks:

    benevido (23.06.18) , Rebound (03.03.18) , CoreCore (14.08.17) , cloud99 (11.08.17) , anon (10.08.17) , H265 (10.08.17)

  3. #2
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Updated file format to a more readable one.
    Last edited by anthony-joal; 13.08.17 at 16:05.
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  4. #3
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added 3.3.16 changes
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  5. Who Said Thanks:

    anon (09.09.17) , cloud99 (08.09.17)

  6. #4
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added 4.0.0
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  7. Who Said Thanks:

    H265 (22.11.17) , cloud99 (22.11.17)

  8. #5
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added 4.0.1
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  9. #6
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added 4.0.4
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  10. Who Said Thanks:

    cloud99 (17.02.18) , anon (17.02.18)

  11. #7
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added 4.1.0
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  12. #8
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    Added up to 4.1.6 and also added a bash script that returns the latest "user-agent", "peer_id prefix" and "key algorithm" for the latest qBittorrent tag at https://github.com/qbittorrent/qBittorrent
    This is my signature. There are many others like it, but this one is mine.
    Reply With QuoteReply With Quote
    Thanks

  13. Who Said Thanks:

    anon (06.07.19) , Tommyamilk (03.07.19)

  14. #9
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,370
    Activity Longevity
    11/20 19/20
    Today Posts
    1/5 ssss39370
    Quote Originally Posted by anthony-joal View Post
    Added up to 4.1.6 and also added a bash script that returns the latest "user-agent", "peer_id prefix" and "key algorithm" for the latest qBittorrent tag at https://github.com/qbittorrent/qBittorrent
    Just wanted to say this script and its Transmission equivalent work very well under busybox for Windows (see http://frippery.org/busybox/index.html) as long as some small changes are made.

    Code:
    --- qBittorrent.sh
    +++ qBittorrent_win.sh
    @@ -10,7 +10,7 @@
     
     if [ -z ${1+x} ]; then
       # Download latest release
    -  tarballUrl=$(curl -s https://api.github.com/repos/qbittorrent/qBittorrent/tags \
    +  tarballUrl=$(wget -q -O - https://api.github.com/repos/qbittorrent/qBittorrent/tags \
         | grep "tarball_url" \
         | head -1 \
         | cut -d : -f 2,3 \
    @@ -20,10 +20,10 @@
       # download the release from the "tarball_url" given in parameter (see https://api.github.com/repos/qbittorrent/qBittorrent/tags)
       tarballUrl=$1
     fi
    -curl -L $tarballUrl --output $qBittorrentTempFolder/qBittorrent.tar.gz
    +wget $tarballUrl -O $qBittorrentTempFolder/qBittorrent.tar.gz
     
     # uncompress the archive
    -tar -xzf $qBittorrentTempFolder/qBittorrent.tar.gz -C $qBittorrentTempFolder/ --strip 1
    +tar -xzf $qBittorrentTempFolder/qBittorrent.tar.gz -C $qBittorrentTempFolder/ --strip 1 2>nul
     
     # seach for qBittorent versions
     VER_MAJOR=$(grep "VER_MAJOR =" $qBittorrentTempFolder/version.pri | cut -d '=' -f 2 | tr -d '[:space:]')
    Code:
    --- transmission.sh
    +++ transmission_win.sh
    @@ -7,7 +7,7 @@
     
     if [ -z ${1+x} ]; then
       # Download latest release
    -  tarballUrl=$(curl -s https://api.github.com/repos/transmission/transmission/releases/latest \
    +  tarballUrl=$(wget -q -O - https://api.github.com/repos/transmission/transmission/releases/latest \
         | grep "tarball_url" \
         | head -1 \
         | cut -d : -f 2,3 \
    @@ -17,10 +17,10 @@
       # download the release from the "tarball_url" given in parameter (see https://api.github.com/repos/transmission/transmission/releases)
       tarballUrl=$1
     fi
    -curl -L $tarballUrl --output $transmissionTempFolder/transmission.tar.gz
    +wget $tarballUrl -O $transmissionTempFolder/transmission.tar.gz
     
     # uncompress the archive
    -tar -xzf $transmissionTempFolder/transmission.tar.gz -C $transmissionTempFolder/ --strip 1
    +tar -xzf $transmissionTempFolder/transmission.tar.gz -C $transmissionTempFolder/ --strip 1 2>nul
     
     
     if [ $(grep -c '(e, CURLOPT_USERAGENT, TR_NAME "/" SHORT_VERSION_STRING);' $transmissionTempFolder/libtransmission/web.c) -lt 1 ]; then
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  15. #10
    Guest Coder anthony-joal's Avatar
    Join Date
    22.03.17
    Location
    France
    P2P Client
    qBittorrent
    Posts
    188
    Activity Longevity
    0/20 9/20
    Today Posts
    0/5 ssssss188
    On windows i use "git for windows" wich is a fullfeatured mingwn
    Reply With QuoteReply With Quote
    Thanks

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •