Gzip Decode Error Torrent
Contents |
Mon Oct 17 11:56:35 CEST 2016 .:: Contact :: Home ::. Powered by: FUDforum 3.0.6RC2.Copyright ©2001-2013 FUDforum Bulletin Board Software
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the repair gzip file company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Bencoding Fix
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million gzrecover programmers, just like you, helping each other. Join them; it only takes a minute: Sign up VB to download torrent, deflate gzipped section selectively up vote 1 down vote favorite Apologies if this is a basic https://www.phpmybittorrent.com/forum/index.php?t=msg&goto=148&rid=0 question, i'm a very casual programmer. I'm writing a program which will search for torrents, grab them based on certain criteria (one being that they are indicated as freeware, you'll be pleased to hear) and then throw them over to utorrent. I'm getting stuck downloading the .torrent file, because, I believe, of the encoding. I've worked out thus far that the bulk of the top of the file can be gzip deflated on http://stackoverflow.com/questions/16676717/vb-to-download-torrent-deflate-gzipped-section-selectively the fly using HTTPrequest - but it seems that half-way through the file, something changes - and looking in a hex editor at a .torrent i've grabbed from a site directly versus the one I download here, everything is identical up to a point, then all is totally different. If i'm being vague i'm afraid it's because i'm making this all up as I go along! Is it likely that the encoding / compression in a torrent file would change part way through, and how could I catch this in VB to avoid corrupting the latter half? Thanks very much in advance, Dan encoding download gzip httprequest utorrent share|improve this question asked May 21 '13 at 18:12 DanB 226 Put more elegantly; > Is it likely that the encoding/compression will change part-way through a download using HTTPrequest, and IF SO, > How should I go about detecting and handling this? Thanks! –DanB May 22 '13 at 19:38 once you grab them, use something like a command line version of maketorrent. it will open and add them auto to utorrent. Just have your app send the command line to it run it –Glen Morse Oct 9 '13 at 9:24 add a comment| active oldest votes Know someone who can answer? Share a link to th
Sign in Pricing Blog Support Search GitHub This repository Watch 172 https://github.com/mafintosh/peerflix/issues/13 Star 3,913 Fork 527 mafintosh/peerflix Code Issues 72 Pull requests 10 Projects 0 Pulse Graphs New issue Torrent not readable from Torcache.net #13 Closed Florian95 opened this Issue Jul 9, 2013 · 7 comments Projects None yet Labels None yet Milestone No milestone Assignees invalid compressed No one assigned 3 participants Florian95 commented Jul 9, 2013 Torrent file fromt torcache.net doesn't work. Exemple with Creative Common Torrent : http://torcache.net/torrent/0e876ce2a1a504f849ca72a5e2bc07347b3bc957.torrent (Big Buck Bunny 720p) /usr/local/lib/node_modules/peerflix/app.js:43 if (err) throw err; ^ Error: not a colon at:77 at BdecodeSMachine.parse (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/node_modules/bncode/bencode.js:186:19) at Bdecode.decode (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/node_modules/bncode/bencode.js:327:14) at Object.decode (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/node_modules/bncode/bencode.js:451:11) invalid compressed data at parse (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/index.js:24:19) at module.exports.ondata (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/index.js:56:11) at Request.module.exports.onresponse [as _callback] (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/index.js:68:3) at Request.init.self.callback (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/node_modules/request/index.js:142:22) at Request.EventEmitter.emit (events.js:91:17) at Request.onResponse (/usr/local/lib/node_modules/peerflix/node_modules/read-torrent/node_modules/request/index.js:856:14) at Request.EventEmitter.emit (events.js:115:20) Ivshti commented Jul 9, 2013 That's because torcache serves torrents compressed with gzip. Pipe the request manually, un-gzip it, put it into a buffer, then pass the buffer to peerflix. Florian95 commented Jul 9, 2013 Peerflix can't directly accept gzip response ? Ivshti commented Jul 9, 2013 No - if you want to add this functionality, it's actually in the read-torrent module, which - if I'm not mistaken - uses the request module for HTTP requests. Florian95 commented Jul 9, 2013 Ok, thank you. So, I'll see https://github.com/mafintosh/read-torrent Florian95 closed this Jul 9, 2013 Florian95 reopened this Jul 9, 2013 Florian95 commented Jul 9, 2013 If I use read-torrent in standalone : $ node cli.js http://torcache.net/torrent/0e876ce2a1a504f849ca72a5e2