eith0s / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

extsearch plugin for BTN needs updating #804

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable loginmgr plugin and enter BTN credentials
2. Enable extsearch plugin, and enable BTN search engine
3. Perform a search using the extsearch plugin and BTN tracker

What is the expected output? What do you see instead?

The expected output is search results that can be added to rtorrent. Instead, 
rutorrent returns a blank page. 

What environment are you using?
1. My ruTorrent version is 3.5 SVN rev 2261
2. My rTorrent version is 0.9.2
3. I use web-server Apache/2.2.22 on Ubuntu 12.04 LTS
4. I use browser Chrome it version 24.0.1312.57 m on OS Windows

Are some errors present in the web-server log?
No

Are some errors present in the browser error console?
No

Please provide any additional information below.

According to the post 
http://forums.rutorrent.org/index.php?topic=344.msg12822#msg12822 you have a 
BTN account that can be recovered by going to their chat channel #btn-disabled 
on irc.broadcasthe.net (port 6697 for SSL).

Thank you. 

Original issue reported on code.google.com by will.mar...@gmail.com on 22 Feb 2013 at 6:17

GoogleCodeExporter commented 8 years ago

Original comment by novik65 on 23 Feb 2013 at 5:44

GoogleCodeExporter commented 8 years ago

Original comment by novik65 on 26 Feb 2013 at 2:05

GoogleCodeExporter commented 8 years ago
ABTorrents fixed. My account for BTN is deleted - as result, i can't recover 
password.

Original comment by novik65 on 26 Feb 2013 at 2:10

GoogleCodeExporter commented 8 years ago
Fixed now.

Original comment by novik65 on 27 Feb 2013 at 8:01

GoogleCodeExporter commented 8 years ago
Hey Novik, I just checked out the latest version of the SVN and tested, and 
ABTorrents works, thanks! But I'm afraid BTN searches come up blank.

I did notice the following in my apache error.log:
[Wed Feb 27 11:02:29 2013] [error] [client x.x.x.x ] PHP Warning:  
unlink(/tmp/1361988144512e4a302c9c1): No such file or directory in 
/var/www/rutorrent/php/Snoopy.class.inc on line 562, referer: 
https://x.com/rutorrent/
[Wed Feb 27 11:02:29 2013] [error] [client x.x.x.x ] PHP Warning:  
unlink(/tmp/1361988144512e4a302ca11): No such file or directory in 
/var/www/rutorrent/php/Snoopy.class.inc on line 563, referer: 
https://x.com/rutorrent/

I verified the login information stored in 
/var/www/rutorrent/share/users/<user>/settings/loginmgr.dat is correct

Thanks

Original comment by will.mar...@gmail.com on 27 Feb 2013 at 6:22

GoogleCodeExporter commented 8 years ago
>I did notice the following in my apache error.log:

Probably, BTN can't be accessed from your server. Check ping.

See image.

Original comment by novik65 on 28 Feb 2013 at 4:22

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ok, working for me now. Didn't work this morning, didn't do anything between 
then and now except run "ping" and "dig". Anyway, thanks for fixing, beer money 
sent. 

Original comment by will.mar...@gmail.com on 28 Feb 2013 at 4:52

GoogleCodeExporter commented 8 years ago
Actually, I take it back. The difference between this morning and just now was 
the search term. Searches like "Strange" and "Fringe" work. Searches like 
"Colbert" and "Daily" don't; neither do searches like "The Daily Show" or "The 
Walking Dead". Seems like only the first word is searched on. 

Original comment by will.mar...@gmail.com on 28 Feb 2013 at 5:18

Attachments:

GoogleCodeExporter commented 8 years ago
Strange, all correct for me. May be, we have a different settings in the user 
profiles, and search has a dependence from its?
1) Try to set profile/preferences/Default Search Type to Advanced and check yet 
once.
2) If problem still present then show (or send to novik65[at]gmail.com) 
screenshots of profule/layout and profile/preferences please.

Original comment by novik65 on 28 Feb 2013 at 8:17

GoogleCodeExporter commented 8 years ago
I think, i found a reason.
"Browse quota exceeded, You can only browse for torrents once every second."
I add delay after every request, check.

Original comment by novik65 on 28 Feb 2013 at 8:28

GoogleCodeExporter commented 8 years ago
Still no luck. Here are shots of my BTN profile pages.

How do I enable more verbose logging? 

Original comment by will.mar...@gmail.com on 28 Feb 2013 at 5:32

Attachments:

GoogleCodeExporter commented 8 years ago
Next iteration, check.

>How do I enable more verbose logging? 

Sorry, but if you does not know PHP then you can't ;)

Original comment by novik65 on 1 Mar 2013 at 10:02

GoogleCodeExporter commented 8 years ago
Success! I used the PHP function "file_put_contents" to debug. I put:

file_put_contents('/var/log/apache2/extsearch.log',$url.'/torrents.php?searchstr
='.$what.'&artistname='.$what.$cat.'&searchtags=&tags_type=0&order_by=s6&order_w
ay=desc&page='.$pg."\r\n", FILE_APPEND);
file_put_contents('/var/log/extsearch_debugging/'.$pg.'.results.htm',$cli->resul
ts);

on lines 37&38 of BroadcasThe.php (right after the "$cli = $this->fetch(...)" 
on line 36).

From this I could see that the search string was correct (I tested in a 
separate browser), but that "PHP Notice:  Trying to get property of non-object" 
was being sent to apache error.log, and my $pg.'.results.htm' file was blank. 
So extsearch was sending the right query, but not getting a response. 

I don't know where the actual problem was. However, by deleting the 
loginmgr.dat and re-entering my credentials, I started getting results. 
Awesome. 

I think this ticket should be considered "open" until the $url is "https://..." 
instead of "http://..." (line 24). Does the Snoopy class support this? When I 
made the change I started getting the login page returned to my .results.htm 
log file, as if loginmgr wasn't trying to log in to https://btn..., but only to 
http

Original comment by will.mar...@gmail.com on 1 Mar 2013 at 7:50