Skip to content
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

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

Closed
iav opened this issue Aug 15, 2012 · 14 comments
Closed

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

iav opened this issue Aug 15, 2012 · 14 comments
Labels
OS: Windows Issues specific to Windows
Milestone

Comments

@iav
Copy link

iav commented Aug 15, 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)

@cdumez
Copy link
Contributor

cdumez commented 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 cdumez closed this as completed Aug 15, 2012
@cdumez
Copy link
Contributor

cdumez commented Aug 15, 2012

Also, please confirm that only Btdigg is affected.

@iav
Copy link
Author

iav commented 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.

@cdumez cdumez reopened this Aug 15, 2012
@iav
Copy link
Author

iav commented 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
Copy link
Author

iav commented 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 ?

@sledgehammer999
Copy link
Member

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

@cdumez
Copy link
Contributor

cdumez commented 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.

@sledgehammer999
Copy link
Member

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

@cdumez
Copy link
Contributor

cdumez commented 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 pushed a commit that referenced this issue Sep 15, 2012
@cdumez
Copy link
Contributor

cdumez commented Sep 15, 2012

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

@sledgehammer999
Copy link
Member

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).

@cdumez
Copy link
Contributor

cdumez commented 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

@sledgehammer999
Copy link
Member

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

@fabriba
Copy link

fabriba commented 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 up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OS: Windows Issues specific to Windows
Projects
None yet
Development

No branches or pull requests

4 participants