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

[1337x] Error downloading. System.Exception: BencodeParser failed #10396

Closed
lindenmj opened this issue Dec 6, 2020 · 2 comments
Closed

[1337x] Error downloading. System.Exception: BencodeParser failed #10396

lindenmj opened this issue Dec 6, 2020 · 2 comments

Comments

@lindenmj
Copy link

lindenmj commented Dec 6, 2020

OS: FreeBSD 12.2-RC3 (TrueNAS 12.0 jail)

.Net Runtime: Mono 6.8.0.105

Jackett Version: 0.16.2299.0

Last Working Jackett Version: 0.16.2299.0

Are you using a proxy or VPN? [yes/no] No

Description

I'm using a Node.js app set to download .torrent files for cross-seeding (it does not work with magnet links). The app is not downloading the torrent files as intended and logs show the problem is in Jackett. I have 1337x set to download the torrent files from Torrage but this problem persists with all its torrent host options. This problem goes for Torrent Downloads as well. The app works as intended when searching other various private trackers through Jackett (TorrentLeech, Scenetime, IPT, etc). From what I can interpret is that 1337x is returning the Torrage page to download the torrent file, not the actual file.

Logged Error Messages

Error downloading. indexer: 1337x path: https://1337x.to/torrent/4698502/American-Housewife-S05E05-720p-HDTV-x264-SYNCOPY/
System.Exception: BencodeParser failed ---> BencodeNET.Exceptions.InvalidBencodeException`1[BencodeNET.Objects.IBObject]: Failed to parse IBObject. Invalid beginning character of object. Found '<' at position 0. Valid characters are: 0-9, 'i', 'l' and 'd'
  at BencodeNET.Parsing.BencodeParser.Parse (BencodeNET.IO.BencodeReader reader) [0x00094] in <ad21c07cb78346cf802f6746784c213a>:0 
  at BencodeNET.Parsing.BencodeParserExtensions.Parse (BencodeNET.Parsing.IBencodeParser parser, System.IO.Stream stream) [0x00008] in <ad21c07cb78346cf802f6746784c213a>:0 
  at BencodeNET.Parsing.BencodeParserExtensions.Parse (BencodeNET.Parsing.IBencodeParser parser, System.Byte[] bytes) [0x00007] in <ad21c07cb78346cf802f6746784c213a>:0 
  at Jackett.Server.Controllers.DownloadController.Download (System.String indexerID, System.String path, System.String jackett_apikey, System.String file) [0x001ad] in <32dc8042c0c943f9ad03e33448500b14>:0 
   --- End of inner exception stack trace ---
  at Jackett.Server.Controllers.DownloadController.Download (System.String indexerID, System.String path, System.String jackett_apikey, System.String file) [0x001f2] in <32dc8042c0c943f9ad03e33448500b14>:0 
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Download C90195188BCCAF188CE1432A1F531CDD2EA0FE06</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" lang="en" content="ADD SITE DESCRIPTION">
<meta name="robots" content="index, follow">

<script src="/cdn-cgi/apps/head/AcWr8YMGK3Le-fLIn-mvJGnzO_U.js"></script><link rel="apple-touch-icon" href="/assets/img/apple-touch-icon.png">

<link rel="stylesheet" href="/assets/css/bootstrap.min.css">

<link rel="stylesheet" href="/assets/css/styles.css">

<!--[if lt IE 9]>
            <script src="/assets/js/html5.js"></script>
            <script src="/assets/js/respond.min.js"></script>
        <![endif]-->
</head>
<body>

<nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container-fluid">

<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Torrage</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://torrage.info/" style="color:#fff;">Torrage</a>
</div>


<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">

</ul>
</div>

</div>

</nav>


<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h1><b><code>Download</code></b></h1>
<h3><a href="https://torrage.info/" target="_blank">Torrage</a> is a free service for caching torrent files online. If you want to upload torrent file, go to the <a href="https://torrage.info/" target="_blank">upload page</a>.</h3>
<div class="center">
<p>C90195188BCCAF188CE1432A1F531CDD2EA0FE06.torrent</p>
<a class="btn btn-success btn-lg" href="https://t.torrage.info/download?h=C90195188BCCAF188CE1432A1F531CDD2EA0FE06">Click Here to Download Torrage</a>
</div>
</div>
</div>

</div>


<script src="/assets/js/jquery-1.11.2.min.js"></script>

<script src="/assets/js/bootstrap.min.js"></script>
<script type="text/javascript" data-cfasync="false">
/*<![CDATA[/* */
(function(){var e4e76d85ce4235bc304e8c145dab9ee9="Efj77FgKSiYETdB95-ANWbPiyXeV-o8d1d5jqSDuuHF_T1JDg_B1MfwfOTtEp1vnb0ZJCmJK3Il8NZoL2tQ39WI";var a=['w6bDn8Ktw4HCmMOw','G8OeIMO1wohYwoMhw47Cog==','fwHCkMOUEU7DiMK1SD8+','SMOOS8Oiw4vDmsO7woTDq8KLVcKNRg==','w5HDhBbDnzLCmw==','CsORPcO+wp9BwqI7w5k=','RMKBw4vDuQ==','ScOqe8KNw5lAwq/Crg==','PnTCqBROHsKhw61EJkkB','NnlHwq8=','w5DCnCVjw6DDtg==','XcOxw6o=','wq/DusK0CFvDkhofw77CiMOnU8OFLznClScOw7bDoWg=','DA4Ww44fwoE=','VxnDjwNywoHDrsKzwpTCscOwd8O/w4nDnH3Co8OOw5Bu','wqnCjsKIL38=','WMOOVcO3wpHDnMOuwqLDr8KKcsKeVsODw7U=','a8KcwpFyw703RMK8w41RwosscyNKZSrCsMOIwoFoBQknwp0Hw7pow7Nnwrk=','TB4cecKjwrkvwpPCr2HCqTnCoA==','w4vDgxHDnwnCi8OQTsOTw6xaEw==','G14DwpIAwoNyO8KiWsKfAMOreyZtw5DCq8OTLsKwwoxXwqTDg27Di8OZw5VwYMK1JcO6worDuRHChkpbwoRdXMO7bcK3M8OTw5VpPw8bw5LDsGnDo8Oww6VvwqfDp8OnwrsGw4E=','wrjCksKBNHLDh1TCiMOgw7HCnyvDqHY=','VBnDnSdrwojDtw==','QMOgCSjCucK2w7Mf','woZgYmdgZRZP','w7/DsC0VbMOEw4XCoMOEBsOtIg==','w4fCtMOSMiYAOw==','VR43wq48VsKZOBgzdsOUw6MMwqRiZcKZUMOMw4HDs8KPHMKd'];(function(b,e){var f=function(g){while(--g){b['push'](b['shift']());}};f(++e);}(a,0x1bd));var b=function(c,d){c=c-0x0;var e=a[c];if(b['BkDKsO']===undefined){(function(){var h=function(){var k;try{k=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(l){k=window;}return k;};var i=h();var j='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';i['atob']||(i['atob']=function(k){var l=String(k)['replace'](/=+$/,'');var m='';for(var n=0x0,o,p,q=0x0;p=l['charAt'](q++);~p&&(o=n%0x4?o*0x40+p:p,n++%0x4)?m+=String['fromCharCode'](0xff&o>>(-0x2*n&0x6)):0x0){p=j['indexOf'](p);}return m;});}());var g=function(h,l){var m=[],n=0x0,o,p='',q='';h=atob(h);for(var t=0x0,u=h['length'];t<u;t++){q+='%'+('00'+h['charCodeAt'](t)['toString'](0x10))['slice'](-0x2);}h=decodeURIComponent(q);var r;for(r=0x0;r<0x100;r++){m[r]=r;}for(r=0x0;r<0x100;r++){n=(n+m[r]+l['charCodeAt'](r%l['length']))%0x100;o=m[r];m[r]=m[n];m[n]=o;}r=0x0;n=0x0;for(var v=0x0;v<h['length'];v++){r=(r+0x1)%0x100;n=(n+m[r])%0x100;o=m[r];m[r]=m[n];m[n]=o;p+=String['fromCharCode'](h['charCodeAt'](v)^m[(m[r]+m[n])%0x100]);}return p;};b['wSyIgH']=g;b['tFeiIK']={};b['BkDKsO']=!![];}var f=b['tFeiIK'][c];if(f===undefined){if(b['lsslfq']===undefined){b['lsslfq']=!![];}e=b['wSyIgH'](e,d);b['tFeiIK'][c]=e;}else{e=f;}return e;};var n=window;n[b('0x9','@kKT')]=[[b('0x7',']]P&'),0xeeb9f],[b('0xd','o5Mo'),0.0009],[b('0x18','op&9'),0x0],[b('0xb','@KnN'),0x0],[b('0x19','dz0w'),![]],[b('0x6','1MUm'),0x0],[b('0x0','wkB8'),!0x0]];var q=[b('0x14','xPxA'),b('0x17','c7UU'),b('0xf','c$X$'),b('0x2','zsel')],i=0x0,g,z=function(){if(!q[i])return;g=n[b('0xa','yAtS')][b('0x15','2m5h')](b('0x10','c7UU'));g[b('0xc','QSn8')]=b('0x13','1MUm');g[b('0x12','op&9')]=!0x0;var c=n[b('0x1a','WSVa')][b('0x11','dz0w')](b('0x3','hPY2'))[0x0];g[b('0xe',']p&V')]=b('0x1b','a(p6')+q[i];g[b('0x5','BR*m')]=b('0x8','9]Tb');g[b('0x1','g(tk')]=function(){i++;z();};c[b('0x4','9]Tb')][b('0x16',']]P&')](g,c);};z();})();
/*]]>/* */
</script>
</body>
</html>

@garfield69
Copy link
Contributor

garfield69 commented Dec 6, 2020

1337x only has magnets.

The 1337x web site uses 3rd party magnet-to-torrent providers to provide .torrents version of the magnets.
The issue occurs when any of the three providers that 1337x has links to on their torrent details page, itorrents, torrage, and btcache, do not return a .torrent file when you follow the link, and return a html page instead.
This can occur when these providers do not have a .torrent for the magnet requested, or if the sites has a cloudflare anti-DDoS page active, or any number of other reasons.

and there is nothing Jackett can do about it.

@garfield69
Copy link
Contributor

Switch to using itorrents, which mostly works.

btcache and torrage recently changed their behaviour and have an intermediate page before the download link.

I am going to update the 1337x indexer config page to only list itorrents as the .torrent provider.

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

2 participants