Git Product home page Git Product logo

Comments (2)

SpasovskiFilip avatar SpasovskiFilip commented on July 30, 2024

Same here, after I updated qBittorrent to 4.5.0 it stopped, before it worked great.

UPDATE

After some digging, I found out that qBittorrent changed the way they set the categories from the webUI.
It no longer sends a GET request, but rather a POST request. Also the hash and category are not a part of the URL, they're now part of the body attribute of the request.
Here is an example of how the qBittorrent native WebUI fetch request looks like

fetch("http://192.168.1.111:8081/api/v2/torrents/setCategory?hashes=f05005827111faa0ef05fc453785b3c842816883&category=Category1", {
    "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-language": "en-GB,en-US;q=0.9,en;q=0.8"
    },
    "referrer": "http://192.168.1.111:8081/",
    "referrerPolicy": "strict-origin-when-cross-origin",
    "body": null,
    "method": "GET",
    "mode": "cors",
    "credentials": "include"
});

And this is how iQbit's fetch request looks like

fetch("http://192.168.1.111:8081/api/v2/torrents/setCategory", {
    "headers": {
        "accept": "text/javascript, text/html, application/xml, text/xml, */*",
        "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
        "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
        "x-requested-with": "XMLHttpRequest"
    },
    "referrer": "http://192.168.1.111:8081/",
    "referrerPolicy": "same-origin",
    "body": "hashes=f05005827111faa0ef05fc453785b3c842816883&category=Category1",
    "method": "POST",
    "mode": "cors",
    "credentials": "include"
});

from iqbit.

ntoporcov avatar ntoporcov commented on July 30, 2024

Fixed a whole bunch of the methods on the latest push, it should all be working now with 4.5.0
Please create a new issue if I missed any of the endpoints and I'll try to get it fixed same day :D

from iqbit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.