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

Receiving 404 Error When Searching Kick Ass Torrents #431

Closed
ghost opened this issue Dec 29, 2011 · 22 comments
Closed

Receiving 404 Error When Searching Kick Ass Torrents #431

ghost opened this issue Dec 29, 2011 · 22 comments

Comments

@ghost
Copy link

ghost commented Dec 29, 2011

I have re-enabled Kick Ass Torrents as a search provider, in hoping that it would work with the latest version. It had previously been returning corrupt torrent files (See issue #391 and #408)

However, I did a rescan and I'm seeing the following error in the logs:

WARNING Error fetching data from Kick Ass Torrent: HTTP Error 404: Not Found

I did see that it successfully found one torrent file from Kick Ass, however that torrent file was still corrupt. I'm not sure if these warnings can therefore be ignored, but the corrupt issue still exists.

Thanks for all of your great work on this!

@ghost
Copy link
Author

ghost commented Jan 4, 2012

After I updated to the latest version, I'm still getting 404 errors for KAT.

@SteffanH
Copy link

Sorry, my #457 is duplicate with this :/

@rembo10
Copy link
Owner

rembo10 commented Jan 26, 2012

Im just away from my computer right now but can you check the searcher.py file in the yourheadphonesdir/headphones directory and search for "if headphones.KAT:" line and make sure that url is correct? I might be able to just edit it from the github page

@avjui
Copy link

avjui commented Jan 26, 2012

Hi

Maybe this fix it replace "http://www.kat.ph/search/" with "http://www.kat.ph/usearch/".

@SteffanH
Copy link

Both give me a 404 message when I try to access them through my browser?
I'll check never the less, but my current guestimate would be that it might have something to do with special characters in the album name. For another album I' m getting

2012-01-26 17:40:49 ERROR Couldn't write Torrent file: [Errno 2] No such file or directory

So I'd assume the search URL would be correct, as it tried downloading (I.e. a result from KAT was returned)...

[edit]
Changed /search/ to /usearch/ and restarted but the error remains

[edit2] edited searcher.py to include url and term, but the generated URL results in an empty page, for example
http://www.kat.ph/usearch/Amy%20Winehouse%20iTunes%20Festival%3A%20London/?field=seeders&rss=1&sorder=desc&categories%5B0%5D=music

Started playing with the URL parameters, and as soon as i add &rss=1 the result is a blank page, with just field=seeders i get a clear 'no results found'

@SteffanH
Copy link

Any other suggestions?

@achmetinternet
Copy link

I got the same error.

@rembo10
Copy link
Owner

rembo10 commented Nov 29, 2012

Does it happen everytime? I was doing some testing and would get a 404
error but randomly so i'm not sure

On Wed, Nov 28, 2012 at 12:08 AM, achmetinternet
notifications@github.comwrote:

I got the same error.


Reply to this email directly or view it on GitHubhttps://github.com//issues/431#issuecomment-10766614.

@rembo10
Copy link
Owner

rembo10 commented Jun 12, 2013

If you guys are still around can you give the develop branch a try? Think I have this fixed

@achmetinternet
Copy link

I updated to Version: 31fc9f59ab7fd1576b21583770f61141093ccb1a now. Let's see.

EDIT: I am getting again this strange message:

A newer version is available. You're 0 commits behind. Update or Close

@achmetinternet
Copy link

2013-06-13 02:10:48 WARNING Error fetching data from Kick Ass Torrent: HTTP Error 404: Not Found

@rembo10
Copy link
Owner

rembo10 commented Jun 13, 2013

What quality setting do you use?

On Thu, Jun 13, 2013 at 7:11 AM, achmetinternet notifications@github.comwrote:

2013-06-13 02:10:48 WARNING Error fetching data from Kick Ass Torrent:
HTTP Error 404: Not Found


Reply to this email directly or view it on GitHubhttps://github.com//issues/431#issuecomment-19363929
.

@achmetinternet
Copy link

Highest Quality including Lossless

@rembo10
Copy link
Owner

rembo10 commented Jun 13, 2013

It's working fine for me. Dumb question but did you restart headphones
after switching to the dev branch?

On Thu, Jun 13, 2013 at 12:56 PM, achmetinternet
notifications@github.comwrote:

Highest Quality including Lossless


Reply to this email directly or view it on GitHubhttps://github.com//issues/431#issuecomment-19373578
.

@achmetinternet
Copy link

Of course. Are we using the same commit? I still got the error happening. Anything that could help?

@rembo10
Copy link
Owner

rembo10 commented Jun 13, 2013

What happens when you click on the kat link in the log?
On Jun 13, 2013 1:27 PM, "achmetinternet" notifications@github.com wrote:

Of course. Are we using the same commit? I still got the error happening.
Anything that could help?


Reply to this email directly or view it on GitHubhttps://github.com//issues/431#issuecomment-19374348
.

@achmetinternet
Copy link

I sent you two logs.

As for the kat "link": there is no link (it is a red line without any hyperlink) equal to the links I get for other search providers.

@AdeHub
Copy link
Collaborator

AdeHub commented Jun 13, 2013

Working for me

@achmetinternet
Copy link

So what can I do?

@rembo10
Copy link
Owner

rembo10 commented Jun 13, 2013

Can you hit kat from that machine outside of headphones?
On Jun 13, 2013 6:33 PM, "achmetinternet" notifications@github.com wrote:

So what can I do?


Reply to this email directly or view it on GitHubhttps://github.com//issues/431#issuecomment-19386241
.

@achmetinternet
Copy link

With no problem. I get directed to http://kickass.to/.

@Jorman
Copy link

Jorman commented Dec 1, 2013

Same error here, kat works on browser but not on HP, I tried to read the searcher.py code, and I see that

        params = {
                    "categories[0]": "music",
                    "field": "seeders",
                    "sorder": "desc",
                    "rss": "1"
                  }
        searchURL = providerurl + "/?%s" % urllib.urlencode(params)

But:
catetories no longer exist on kat, only category and is not numeric but is:
Mp3, AAC, Lossless, Transcode, Other Music

A working research on kat is for example that
http://kickass.to/usearch/jamiro%20category%3Amp3/?field=seeders&sorder=desc&rss=1

I tried to modify the code, I don't know if is right, but always 404 error... This is my try

    if headphones.KAT:
        provider = "Kick Ass Torrent"
        providerurl = url_fix("http://kat.ph/usearch/" + term)
        if headphones.PREFERRED_QUALITY == 3 or losslessOnly:
            categories = "7"        #music
            format = "2"             #flac
    test = "flac"
            maxsize = 10000000000
        elif headphones.PREFERRED_QUALITY:
            categories = "7"        #music
            format = "10"            #mp3+flac
    test = "music"
            maxsize = 10000000000
        else:
            categories = "7"        #music
            format = "8"            #mp3
    test = "mp3"
            maxsize = 300000000

        params = {
                    "field=seeders&",
                    "sorder=desc&",
                    "rss=1"
                  }
        searchURL = providerurl + "category:$test" "/?%s" % urllib.urlencode(params)

Any ideas @rembo10 ?

@Jorman
Copy link

Jorman commented Dec 1, 2013

Btw, I think "I found" the problem, kat works, but with album or result that not have data, for example
Patrice ONE 2010
generate that link that generate a blank page
http://kickass.to/usearch/Patrice%20ONE%202010/?field=seeders&rss=1&sorder=desc&categories%5B0%5D=music

So HP interprets the blank page like a 404 page

make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants