-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fixes for ruTorrent jQuery & Utility commits #58
base: master
Are you sure you want to change the base?
Conversation
First of all thank you so much for also updating the irssi web plugin. I've tested your changes on the latest ruTorrent git master branch as of now (5f139bf) and used a fork of your branch. I don't have any authority here, but LGTM. |
Quick update, related to swizzin/swizzin#811 (comment) I've just updated my container using the latest ruTorrent as of now (Novik/ruTorrent@627164e) that is after the v4.0-beta.1 tag and including this PR. Can confirm this still works on v4.0-beta.1 ruTorrent. |
Thanks @zmiguel for confirming that. v4.0-beta.1 is just tag of these and other changes. There has been no breaking changes in the master branch since this version tag. If any problems are encouraged, they will most likely be related to the 2 PRs I tagged. Developers can ether use the commit you selected or pre-release v4.0-beta.1 to test. The only difference is increased debugging information. ruTorrent was updated to log a stack trace to console when a JavaScript error occurs. |
Thanks for the fix @stickz. Myself and others greatly appreciate your contribution to this problem. I've tested these changes myself and everything is looking good. |
Not sure if it's related to this issue, but autodl is still not working on my setup:
Of course port and password is set in conf.php. Also autodl is listening on that port. Maybe it's related to the fact that I upgraded to php 8.1 on my debian machine? |
Could you try this without PHP 8? ruTorrent and/or autodl may not be compatible with this. There's been zero testing for PHP 8. |
The problem is that I cannot easily downgrade without some super hacks. Well, I'll have to live without autodl for a wile. I hope you'll adopt it to php8.1 sooner or later. But I can help testing php8 compatibility. |
@skibbipl I would recommend sticking with php7 or running it in a container. |
Please merge this into master so we can get on the latest version of rutorrent. thanks! |
friendly ping ... merge into master? |
This appears to have fixed the issue. 👍 |
Having the same issue. How do i go about adding these changes with the command line? |
Can we get this updated again please. I applied all the changes here, and it is still broken in latest rutorrent 4.0.2 |
This is working for me in its current state with PHP v8.1 and ruTorrent v4.0.2 (thank you very much stickz 💙). To use it before merge put |
Tried your solution but get an error:
the error |
@watermelonpinecone thanks for this, though it did not work for me. I removed the extra space mentioned by @jaum20 but I still get the same error "Exception info: No content elem with id autodl-prefs-contents-upload" after applying the changes. |
I would suggest you to switch to autobrr. That was what I did and can’ get back to autodl |
can someone please walk me through how to download this changes in terminal without having to go file by file? |
@stickz ruTorrent v5.1 broke autodl-rutorrent UI, any chance of getting a patch that fixes it? |
Please note: I was not able to setup a proper testing environment for this pull request. Testing was limited to what I could find without setting up
autodl-irssi
and using the jQuery migration plugin. I require help testing this pull request.The latest updates to ruTorrent can be downloaded from the master branch here: https://github.com/Novik/ruTorrent
What does this pull request fix?
This pull request addresses a commit with ruTorrent where the utility functions were changed. Refactor code & implement autoloader Novik/ruTorrent#2247
This pull request also addresses a commit with ruTorrent where the jQuery version was upgraded to 3.6.
Upgrade jquery version to 3.6 Novik/ruTorrent#2236
What are the fixes for this pull request?
With the change in utility functions for ruTorrent, we must now access them from their respective classes. They are no longer in the global scope. They now must be accessed from static class methods.
With the upgrade of JQuery to version 3.6 we must change the syntax of our JavaScript files to match new stricter rules:
It is no longer recommended to use:
Instead we should do this:
We can no longer do this:
<div id="autodl-filters-list"/>
instead we must do this:<div id="autodl-filters-list"></div>
.