Timothée Mazzucotelli

Results 627 comments of Timothée Mazzucotelli

I'm not sure to understand what your feature request is. aria2p already provides programmatic ways to modify options within the running aria2 server. See for example https://pawamoy.github.io/aria2p/reference/api/#aria2p.api.API.set_global_options and `set_options` just...

Thanks, that's nice :slightly_smiling_face: I'll have to think about it seriously, to make sure the feature is useful in most case and easy to maintain.

Could you expand a bit? What file? What shell commands?

Unfortunately there's absolutely no way to do that from aria2p. We're communicating with the server using the HTTP (JSON-RPC) protocol, so we simply cannot issue shell commands onto the server...

I see in aria2c's man page that you can load cookies using the `load-cookies` option configuration file. Did you try setting [this option](https://pawamoy.github.io/aria2p/reference/options/#aria2p.options.Options.load_cookies) using aria2p?

Something like this? ```python from aria2p.api import API aria2 = API() url = ... download = aria2.add_uris( [url], options={"load-cookies": "path/to/cookie/file", "header": "X-Thing: value"} ) ```

Oh, I'm pretty sure you can do that with `aria2`'s configuration file, usually located at `~/.config/aria2/aria2.conf`. Check out its man pages, everything is explained there. In your case, you'll want...

Aaaaah indeed, sorry, I failed to see that. Yes, maybe `aria2p` could try to read `aria2`'s configuration file when it exists, so it can automatically use the right secret and...

I am considering it, just didn't get the time to work on it, PRs welcome :slightly_smiling_face: !

Yeah if I remember correctly I was never able to make the clipboard Python package work correctly in CI. I'll take a look at this.