mike
April 9, 2015, 2:26pm
1
Hi
Im still having trouble getting bitmetv working in the dev branch.
Ive added the uid, rss passkey and the cookie details with separate cookie pass and formatted as shown in the wiki but Im still getting this error:-
NzbDrone.Core.Indexers.Exceptions.IndexerException: Indexer API call resulted in an unexpected StatusCode [Redirect]
Does anyone know what I might be doing wrong?
Thanks
Taloth
April 9, 2015, 3:31pm
2
Agreed! After some more digging the cookie is definitely not sent in the torrent GET request which is why things go wrong.
GET /download.php/…/NAME.torrent HTTP/1.1
User-Agent: Sonarr/2.0.0.3004 (Linux 3.13)
Accept: application/x-bittorrent
Content-Length: 0
Connection: close
Host: www.bitmetv.org
Accept-Encoding: gzip
And that’s it - but it does go out with the rss.php request.
The cookie I use (copied from real req) in is is of the form: _cfduid=X; PHPSESSID=X; uid=X; pass=X; LAST_BRO…
which version are you on? Never got a reply for @jasonfxp so I dunno if the change even fixed it.
mike
April 9, 2015, 4:06pm
3
I’m on Sonarr Ver. 2.0.0.3039 dev branch on Ubuntu 14.10.
According to the BitMeTV forums the request should be like this:-
https://www.bitmetv.org/rss.php?uid=xxxxx&passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&:COOKIE:uid=xxxxx;pass=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
This as I remember from years ago did work in uTorrent’s very simplistic RSS reader.
or in flexget like this, which seems to mirror sonarr:-
bitmetv:
rss: http://www.bitmetv.org/rss.php?uid=00000&passkey=1231231231231231233d
headers:
cookie: "uid=00000; pass=0000xxxx0000xxxxx0000"
Taloth
April 9, 2015, 4:54pm
4
The :COOKIE:
is specific to utorrent, afaik.
Wait a sec, that other thread is about the .torrent download, not the rss feed.
You should probably use something like wireshark to check out the actual request made.
You’re likely got an error in the cookie or other settings.
mike
April 9, 2015, 9:09pm
5
I tried it manually with curl and it a returned a valid XML file.
curl -v --cookie "uid=xxxxx;pass=xxxxxxxxxxxxxxxxxxxxx" --header "Accept-Language: en" "https://www.bitmetv.org/rss.php?uid=xxxxx&passkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -o bitme.xml
So I’m not sure what’s going on.
Posted a reply in here: Torrent RSS Casting Error regarding incorrect cookie submission, seems that set-cookie overrides the cookie with a cloudfare one.