-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Qt GUI tracklist filter widget may display wrong top-level domain for tlds like .co.uk
#19035
Comments
.co.uk
.co.uk
or, maybe take this comment ? #18190 (comment) |
If my memory serves me right, we did try that but was quickly reverted due to users backlash, I'm not really sure. |
Maybe you can make it so that if this is still one tracker, then the user himself could combine it into one? |
It looks like it could be implemented through something like tracker aliases, e.g. if given |
good to see #19062 |
I did some tracing, here is the history of the relevant code in reverse chronological order (as far as I can tell).
|
@glassez, if you can find the time to implement this, that would be very nice. Thanks. |
@stalkerok |
Quite a lot. For example
or
It is the same tracker. You can put any digit instead of the tracker number and it will work.
|
I wonder what is the point in such subdomains... |
qBittorrent & operating system versions
qBittorrent v4.5.2
Linux Fedora 38
Qt: 6.4.2
Libtorrent: 2.0.8.0
Boost: 1.78.0
OpenSSL: 3.0.8
zlib: 1.2.13
What is the problem?
found the issue during this PR: #18190
the GUI version has a bug dealing with hostname.
in
QString getHost(const QString &url)
(qBittorrent/src/gui/transferlistfilters/trackersfilterwidget.cpp
Line 76 in ecc08de
it simply do
host.section(u'.', -2, -1)
, which will causehttps://www.google.co.uk
becomeco.uk
, not the rightgoogle.co.uk
Steps to reproduce
just copy the
QString getHost(const QString &url)
func out, and do some tests:Additional context
No response
Log(s) & preferences file(s)
No response
The text was updated successfully, but these errors were encountered: