btdigg search engine returns no results for, at least, russian queries #22

Closed
opened 2026-02-21 14:49:13 -05:00 by deekerman · 14 comments
Owner

Originally created by @iav on GitHub (Aug 14, 2012).

btdigg search engine returns no results for, at least, russian queries.
Compare results of search for "сеченов" inside qbittorrent (no results), and on site itself http://btdigg.org/search?info_hash=&q=%D1%81%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2 (17 pages)

Originally created by @iav on GitHub (Aug 14, 2012). btdigg search engine returns no results for, at least, russian queries. Compare results of search for "сеченов" inside qbittorrent (no results), and on site itself http://btdigg.org/search?info_hash=&q=%D1%81%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2 (17 pages)
deekerman 2026-02-21 14:49:13 -05:00
Author
Owner

@cdumez commented on GitHub (Aug 15, 2012):

I have just tried here and it shows results for "сеченов" on my machine. I'm running qBittorrent v3.0.0 on Mac OS X. Which version of qBittorrent and Python are you using? What is your operating system?

@cdumez commented on GitHub (Aug 15, 2012): I have just tried here and it shows results for "сеченов" on my machine. I'm running qBittorrent v3.0.0 on Mac OS X. Which version of qBittorrent and Python are you using? What is your operating system?
Author
Owner

@cdumez commented on GitHub (Aug 15, 2012):

Also, please confirm that only Btdigg is affected.

@cdumez commented on GitHub (Aug 15, 2012): Also, please confirm that only Btdigg is affected.
Author
Owner

@iav commented on GitHub (Aug 15, 2012):

qBittorrent v3.0.0, windows XP with all updates.
python... what are you talking about? :)

Search work ok in case I search for ascii-only strings.
Other engines seems not ok too, bit I don't know how they should work.
Corrently I use only btdigg engine;
I turn on all engines, and only thepiratebay gives me results.

@iav commented on GitHub (Aug 15, 2012): qBittorrent v3.0.0, windows XP with all updates. python... what are you talking about? :) Search work ok in case I search for ascii-only strings. Other engines seems not ok too, bit I don't know how they should work. Corrently I use only btdigg engine; I turn on all engines, and only thepiratebay gives me results.
Author
Owner

@iav commented on GitHub (Aug 15, 2012):

Just test.
search for "сеченов" with thepiratebay.se engine enabled returns a lot of records - and most of them (I can't check much) seems completely unrelated. Same request via web site returns no records: http://thepiratebay.se/search/c%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2/0/99/0

@iav commented on GitHub (Aug 15, 2012): Just test. search for "сеченов" with thepiratebay.se engine enabled returns a lot of records - and most of them (I can't check much) seems completely unrelated. Same request via web site returns no records: http://thepiratebay.se/search/c%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2/0/99/0
Author
Owner

@iav commented on GitHub (Aug 15, 2012):

Sorry, I can't remember when, where and why i install python to this computer... But I have a python separattely - 2.7.3.

What should I do ?

@iav commented on GitHub (Aug 15, 2012): Sorry, I can't remember when, where and why i install python to this computer... But I have a python separattely - 2.7.3. What should I do ?
Author
Owner

@sledgehammer999 commented on GitHub (Sep 15, 2012):

This is what I get:

Btdigg: no results
PirateBay: numerous results but when I search via the browser piratebay doesn't find anything.

Maybe the engines don't handle correctly the utf encoding or is the string passed to them with the wrong encoding?

qbt 3.0.2 python 2.7.3 Windows XP

@sledgehammer999 commented on GitHub (Sep 15, 2012): This is what I get: Btdigg: no results PirateBay: numerous results but when I search via the browser piratebay doesn't find anything. Maybe the engines don't handle correctly the utf encoding or is the string passed to them with the wrong encoding? qbt 3.0.2 python 2.7.3 Windows XP
Author
Owner

@cdumez commented on GitHub (Sep 15, 2012):

Yes, my guess is that we pass the wrong encoding at some point. We should pass UTF-8 but we likely use local8Bit instead. I cannot reproduce on Linux or Mac because the system uses UTF-8.

@cdumez commented on GitHub (Sep 15, 2012): Yes, my guess is that we pass the wrong encoding at some point. We should pass UTF-8 but we likely use local8Bit instead. I cannot reproduce on Linux or Mac because the system uses UTF-8.
Author
Owner

@sledgehammer999 commented on GitHub (Sep 15, 2012):

Can you tell me where should I loook in the source so I can test things?

@sledgehammer999 commented on GitHub (Sep 15, 2012): Can you tell me where should I loook in the source so I can test things?
Author
Owner

@cdumez commented on GitHub (Sep 15, 2012):

@sledgehammer999 : Could you please test the following?
http://pastebin.ca/2204445

It is inspired from http://bugs.python.org/issue2128#msg125827

I believe this is the bug we are encountering on Windows. I'm unable to test the code though.

@cdumez commented on GitHub (Sep 15, 2012): @sledgehammer999 : Could you please test the following? http://pastebin.ca/2204445 It is inspired from http://bugs.python.org/issue2128#msg125827 I believe this is the bug we are encountering on Windows. I'm unable to test the code though.
Author
Owner

@cdumez commented on GitHub (Sep 15, 2012):

@sledgehammer999 : Alternatively, you can checkout the "search_encoding_windows" branch in GIT. I pushed my patch proposal there.

@cdumez commented on GitHub (Sep 15, 2012): @sledgehammer999 : Alternatively, you can checkout the "search_encoding_windows" branch in GIT. I pushed my patch proposal there.
Author
Owner

@sledgehammer999 commented on GitHub (Sep 15, 2012):

I had to manually copy the new nova.py because qbt kept creating the old nova.py

With the new nova.py:

I get results from btdigg. The results are 8 but in the browser search they fill 14 pages. Also I cannot confirm if they are correct results. I now don't get any result from piratebay(as intended).

@sledgehammer999 commented on GitHub (Sep 15, 2012): I had to manually copy the new nova.py because qbt kept creating the old nova.py With the new nova.py: I get results from btdigg. The results are 8 but in the browser search they fill 14 pages. Also I cannot confirm if they are correct results. I now don't get any result from piratebay(as intended).
Author
Owner

@cdumez commented on GitHub (Sep 15, 2012):

Hmm, I get 100 results for "сеченов" on Mac OS X. If you get 8 on Windows, something is still wrong.

I get exactly the same results as:
http://btdigg.org/search?q=%D1%81%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2&p=0&order=1

@cdumez commented on GitHub (Sep 15, 2012): Hmm, I get 100 results for "сеченов" on Mac OS X. If you get 8 on Windows, something is still wrong. I get exactly the same results as: http://btdigg.org/search?q=%D1%81%D0%B5%D1%87%D0%B5%D0%BD%D0%BE%D0%B2&p=0&order=1
Author
Owner

@sledgehammer999 commented on GitHub (Sep 15, 2012):

I'll play around with nova.py but I am not good with python.

@sledgehammer999 commented on GitHub (Sep 15, 2012): I'll play around with nova.py but I am not good with python.
Author
Owner

@fabriba commented on GitHub (Sep 3, 2014):

Any news on this topic? HAving the same problem, win 8.1, installed latest qbittorrent and latest python (shall I install latest 2.7.8 or the one bundled with qbittorrent 2.7.3?)

Only mininova and legittorrent work, some other are banned by me being in europe, but some should really work, as they do via browser.
Also, I tried to copy kickasstorrent.py inside the NOVA folder and edit it to point to katproxy.com instead the usual site, but it fails to be imported.

Thank you

@fabriba commented on GitHub (Sep 3, 2014): Any news on this topic? HAving the same problem, win 8.1, installed latest qbittorrent and latest python (shall I install latest 2.7.8 or the one bundled with qbittorrent 2.7.3?) Only mininova and legittorrent work, some other are banned by me being in europe, but some should really work, as they do via browser. Also, I tried to copy kickasstorrent.py inside the NOVA folder and edit it to point to katproxy.com instead the usual site, but it fails to be imported. Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#22
No description provided.