@Spire, thanks buddy, I really appreciate your kind words and supportive post and your help and feedback in this thread
When I test this here, then if having 'Always show' disabled in deluge preferences under 'Downloads', then your first example always fail adding trackers as you stated. If not having that option disabled, then for me it's a matter of if i'm pressing 'Add' before or after the fiellist gets populated with magnet file-contents - before and it fails and after and it works. The same for me is happening with your next example. This is just what I see here in quick test atleast and also fits with my theory about it being related to if prefetching metadata is finished or not, but I can be wrong of-course. Thanks again for helping track this down and suggesting workarounds.
@nemonein, hey that honestly made my day reading, and you're incredibly kind posting such kind message to me and I sincerly thank you my friend for that!
I again here have the same result as what I posted above to Spire, so I don't know if same scenario or you have hit something I cannot reproduce, yet atleast
For the test at your blog, then I here never got trackers, neither with deluge 2.1.0 or 2.0.5 with libtorrent 2.0.6 or 1.2.15. Strange these differences we see. The reason for that I didn't get trackers on your blog-link is i'm guessing because it uses something I never seen before, I haven't checked if even compliant(guessing not, but as said not sure), but it uses for optional trackers not usual: '&tr=', but more esotic(for me atleast
) '&tr= '.
Heh, I was reading this post before submitting and decided to read little up on the '&' thing, and it's a html command and not a URi one, however need adding to URI if inclosed into a link - so that is the culprit seemingly, as is inclosed link - reason for me getting no trackers even by "clicking" was because I didn't click sorry, but copy/pasted and used 'xdg-open', which should explain the issue, but nice catch!
Anyway @all, If wanting use my fix which works for time being, untill proper fix added by the devs, but not wanting running my previous posted 'sudo' command-line for fixing this, then here's the manual instructions if preferred:
Run this line to find where the file needing changed is located:
Code: Select all
find /usr -path *deluge/core/torrentmanager.py
Replace that file with this:
torrentmanager.py (rightclick > 'save as' if link doesn't download upon clicking it - Also, you can back up original file first if wanted, but a reinstall of deluge will restore original anyways)
Alternatively, then don't need my file and can just in your file add this new line after line 437, so becomes line 438:
Code: Select all
add_torrent_params['url'] = magnet.strip().encode()
Should look like this(only second line is new here):
Code: Select all
if magnet_info:
add_torrent_params['url'] = magnet.strip().encode()
add_torrent_params['name'] = magnet_info['name']
torrent_id = magnet_info['info_hash']