Radarr: Add indexer: Pass The PopCorn

Created on 3 Jan 2017  路  27Comments  路  Source: Radarr/Radarr

I don't have an invite to send you, or I would. But I can help test it. :)

Edit: Removed boilerplate message

enhancement medium

Most helpful comment

I believed I worked this into the logic now, I also added indicators for golden / approved. I think there will be more to add to this in the future but for now I am happy with it.

image

image

All 27 comments

That's great, but for really implementing it I would have to have a login. Else I don't see how I can debug it :/

Gotcha. If I get an invite, I'll let you know. :)

BTW, I did find a work around - Jackett supports PTP, and that works with sonarr & Radarr.

The latest release should include a working Torznab indexer. Thus you should be able to connect Jackett with Radarr. (However, it searches using a query at the moment, so not ideal)

Search is working, and you are able to download them in PR #64

I am thinking about adding Golden / Scene / Checked flags somewhere to be shown on the search page, but need to think about where to put them.

Ideally there would be an option for require AND preferred of both Golden, Checked and Scene.

For example, my preference is requiring checked torrents, and preferring Golden releases.

I believed I worked this into the logic now, I also added indicators for golden / approved. I think there will be more to add to this in the future but for now I am happy with it.

image

image

That's awesome @onedr0p! Now we just need to change the star to a popcorn kernel ;P

@onedr0p @evulhotdog You could probably change it to the Popcorn emoji: 馃嵖

Done :)

Fixed by #64

Could you provide some help with the Cookie? I added PHPSESSID, _cfduid and session in this format:

__cfduid=<alphanumeric>; session=<base64perhaps?endingwith==>; PHPSESSID=<alphanumeric>

But I get

Unable to connect to indexer. Unexpected response status Redirect code from API request

Are you able to access this page in your browser?

https://passthepopcorn.me/torrents.php?json=noredirect

Looks like you aren't getting a status code of 200 from PTP

            if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
            {
                throw new IndexerException(indexerResponse,
                    "Unexpected response status {0} code from API request",
                    indexerResponse.HttpResponse.StatusCode);
            }

Yep.

@theotherp all I needed was
session=xxxxxxx

Is where you are running Radarr, behind any VPN or double NAT?

I can enter what I want for the cookie.

Neither behind a VPN nor NAT, direct access to via public IP (dedicated server).

Oh, right, I access PTP from my home computer but have running Radarr on my dedi.

For some reason or other you're getting a 301 Moved Permanently response code from PTP.

Going to the URL do you get a 200 response in your browser?
https://passthepopcorn.me/torrents.php?json=noredirect

image

Alright, I copied the Cookie from the "Headers" tab in Firefox (previously I stitched the string together using the "Request Cookies" in the "Cookies" tab) and now it encoded the cookie. Not sure if that's the difference that made it work, but it does work now. Thanks for the help!

awesome :)

Can anyone help me with the cookie? I tried all of the suggestions above, but I'm having no such luck.

I tried using Jackett instead but it seems the search functionality is not working. I'm running Radarr on my QNAP so the latest version I have is 0.2.0.99

Goto PTP and press crtl+shift+i and then follow the highlighted... copy then entire cookie, everything after cookie:

Yep, that's what I did. Still getting:

Unable to connect to indexer, check the log for more details

Hmmmm...

System.Net.WebException: Curl Error 77 for Url https://passthepopcorn.me/torrents.php?json=noredirect&searchstr=, issues with your operating system SSL Root Certificate Bundle (ca-bundle).
at NzbDrone.Common.Http.Dispatchers.CurlHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) <0xee0600e8 + 0x0072b> in :0
at NzbDrone.Common.Http.Dispatchers.FallbackHttpDispatcher.GetResponse (NzbDrone.Common.Http.HttpRequest request, System.Net.CookieContainer cookies) <0xf2800e68 + 0x001ef> in :0
at NzbDrone.Common.Http.HttpClient.Execute (NzbDrone.Common.Http.HttpRequest request) <0xf281d9a8 + 0x00180> in :0
at NzbDrone.Core.Indexers.HttpIndexerBase1[TSettings].FetchIndexerResponse (NzbDrone.Core.Indexers.IndexerRequest request) <0xf08edeb0 + 0x00131> in <filename unknown>:0 at NzbDrone.Core.Indexers.HttpIndexerBase1[TSettings].FetchPage (NzbDrone.Core.Indexers.IndexerRequest request, IParseIndexerResponse parser) <0xf08ede70 + 0x0001a> in :0
at NzbDrone.Core.Indexers.HttpIndexerBase`1[TSettings].TestConnection () <0xf01271e8 + 0x0009e> in :0

Fixed the problem by installing QPerl and QCACert as referenced here:

https://forum.qnap.com/viewtopic.php?t=122407#top

Thanks!

This is cool, but instead of grabbing the cookie, this should take the username, password and passkey (the passkey is used by clients like this to disable captchas) and go through a login. look at how this is done in couchpotato

https://github.com/CouchPotato/CouchPotatoServer/blob/b538f9a08db9a0be1af2f298727834edeafa322e/couchpotato/core/media/_base/providers/torrent/passthepopcorn.py

I can try to get a dev environment set up to send a PR, but I probably wont have time. I never do C# development

Jackett and/or Cardigann uses username, password and passkey as well.

Check https://github.com/Jackett/Jackett/blob/master/src/Jackett/Indexers/PassThePopcorn.cs

To everyone, I will make PTP work without cookies. Please understand I did it that way to save time and get other bugs fixed. I will update the code in the future.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

codaamok picture codaamok  路  3Comments

plexecutor picture plexecutor  路  3Comments

danielb2 picture danielb2  路  3Comments

feerlessleadr picture feerlessleadr  路  3Comments

NewUser9 picture NewUser9  路  3Comments