-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with Transmission's RPC API + other improvements #5
Comments
@TuxPaper |
Thanks for digging into it. The commit you reference causes a 409 response on empty POSTs that don't send along the "X-Transmission-Session-Id". However, after that, I'm pretty sure it sends that Maybe transmission-web-control is calling the RPC with no post data after it receives the session id, and then dies. I'm not sure what response it's actually expecting, but I'll look into it. |
@TuxPaper Ok I think I found the problem, the issue is that the plugin only return 409 to empty POSTs if the call is to |
A workaround for now is to change the rpcpath in here: from ../rpc to /transmission/rpc This doesn't break compatibility of the frontend with transmission client, should we send a PR to change it in the frontend? or should this get resolved in biglybt? |
I gave transmission-remote-gui (AKA transgui) a whirl, against the xmwebui instance I've been using for quite some time via direct HTTP and also with a browser "add-torrent" type extension. Unfortunately, any attempt to connect to BiglyBT (with the proper credentials set in the transgui preferences) results in an error dialog containing:
Tracing the session via wireshark, that's pretty much exactly the contents of BiglyBT's reply to the connection requests. Here's a lightly-sanitized "Follow HTTP Stream" view of one session, two such requests made, same response. I've broken the two streams apart based on the wireshark color coding, but it's a simple request-response-request-response flow. (Also, random observation: Attached file (wireshark follow-stream dump): biglybt-transgui-stream.log Expand to view file contents inline...
|
I'm currently away from the office, but I can quickly answer your latest post. It looks like the "invalid core parameter" error is due to the use of the Speed Limit Manager, most likely the "Seeding only limit enabled" setting(s). This is a bug on my end, and I will fix it when I get back. However, I'm guessing turning off the seeding only limit setting(s) will move you one step closer to a working webui And yes, I'll look into the ../rpc to /transmission/rpc problem. I should be able to fix it on our end too. |
@TuxPaper – Appreciate the update! I only had a few minutes to quickly peruse my config before running out the door, but when you say "Speed Limit Manager", I'm not clear what that's referring to. If it's the name of a plugin, I don't think I even have it INSTALLED. I do have limits set in Options > Transfer, but they're entirely static. Everything below Options > Transfer > Auto-Speed is disabled. |
Indeed, I switched off "Alternate rate when only seeding" in Options > Transfer, and transgui immediately connected to BiglyBT as a remote interface. So, it was just that simple. I don't really need that preference, so for the moment I'm fine with leaving it switched off indefinitely while I explore transgui. Thanks for the pointer, @TuxPaper ! |
One thing I'm noticing with transgui, fairly minor really: It's listing all torrents with the "Scrape Disabled" tracker-status in its error bin. So I've got 39 torrents listed as "Error" in transgui, despite having 0 with the Error tag in BiglyBT. I don't know if that's something that can be controlled from the sever side, but it'd be cool if those misreported error states could be cleared up. |
New plugin has just been released with a config option for setting a path to an alternate web ui. Also fixed a few issues (not the last one you mentioned). Using the alternate web ui path config should be more stable, since it uses the standard |
@TuxPaper after the fix you mentioned transmission-web-control loads fine but I can't add torrents |
hmm, I'm using transmission-web-control-1.6.0-beta2 and was able to add a .torrent file and an URL. :/ |
@TuxPaper I don't know why but I had to remove my |
This is similar to the #3 which was closed by the OP.
The problem is that some frontends that provide webui for transmission are not playing well with Biglybt
The webui I tested and didn't work is transmission-web-control
Other improvements related to this issue is we should have the possibility to override the default frontend files, Transmission has multiple ways of doing this:
First, it checks if the environment variable
TRANSMISSION_WEB_HOME
is set then it will use it as a path for the frontend files.then it checks for a user directory
~/.local/share/transmission/web/
, more specifically it checks for~/.local/share/transmission/web/index.html
and if it exists it will use that path as a frontend.if all these don't exist it will fallback to the default directory (
/usr/share/transmission/web/
on Linux)I think we should have a similar mechanism to override the default path since copying the files to
~/.biglybt/plugins/xmwebui/transmission/web
is not very elegent and the files will probably be overwritten when the plugin is updated(haven't tested that), maybe also have a setting in the plugin to specify a custom path.The text was updated successfully, but these errors were encountered: