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

Feature Request: Upload torrent #16

Open
Lunik opened this issue Oct 3, 2015 · 11 comments
Open

Feature Request: Upload torrent #16

Lunik opened this issue Oct 3, 2015 · 11 comments
Assignees
Milestone

Comments

@Lunik
Copy link

Lunik commented Oct 3, 2015

edit by @jpillora: not all websites support programmatic downloads, so cloud torrent should support manual uploads


When I put the torrent URL into the search bar and click on "Start Torrent", the app return an alert.

Alert

Alert error

Console Logs

ConsoleLogs

The .torrent links comme from Cpasbien.pw

@jpillora
Copy link
Owner

jpillora commented Oct 3, 2015

I think its just an invalid torrent, for example http://releases.ubuntu.com/15.04/ubuntu-15.04-desktop-amd64.iso.torrent works

@Lunik
Copy link
Author

Lunik commented Oct 3, 2015

You are right,
But what I don't understand is that those torrent work fine with a classical uTorrent desktop app.

@jpillora
Copy link
Owner

jpillora commented Oct 3, 2015

I'm using https://github.com/anacrolix/torrent underneath and I guess @anacrolix is strictly parsing torrent files. Ping @anacrolix - Hey Matt, are you open to making your torrent parser more lenient?

@anacrolix
Copy link
Contributor

Can you provide a sample .torrent?

@Lunik
Copy link
Author

Lunik commented Oct 3, 2015

@anacrolix
Copy link
Contributor

I don't think the problem is with the torrent library. That site seems to dislike programmatic retrieval of torrent files. I suspect there's a HTTP error involved between cloud-torrent and cpasbien.pw.

@anacrolix
Copy link
Contributor

$ godo github.com/anacrolix/torrent/cmd/torrent ../cv-facile-cvitae.torrent --listen-addr=:50008
2015/10/04 00:15:51 envpprof.go:70: envpprof serving http://127.0.0.1:6064
2015/10/04 00:16:01 main.go:136: downloaded ALL the torrents

Downloads fine, took about ~10s. ~2.8MB torrent.
$ md5sum SetupCVitae.exe
739422d2267ec06b2b65406203ae4dd1 SetupCVitae.exe

@Lunik
Copy link
Author

Lunik commented Oct 3, 2015

Thanks for the explanation.
So is there an other way to use this .torrent ?? I haven't seen a button to upload .torrent file...

@jpillora
Copy link
Owner

jpillora commented Oct 3, 2015

Yeah true, sorry for the false alarm @anacrolix. Yep so it's just a problem with that site. Downloading from the browser seems to work, though doing a programmatic download doesn't:

$ curl -I http://www.cpasbien.pw/telechargement/cv-facile-cvitae.torrent
HTTP/1.1 503 Service Temporarily Unavailable

@Lunik Upload torrent is not yet implemented, though I'll modify this issue to be a feature request.

@jpillora jpillora changed the title Error with .torrent Feature Request: Upload torrent Oct 3, 2015
@Lunik
Copy link
Author

Lunik commented Oct 3, 2015

Thanks for your quick answers.
And nice work @jpillora !!

@PavilionVI
Copy link

Hi,
I've noticed that private torrents don't work too! When I loaded a torrent from bakabt.me, it kept loading but the download didn't start, on the other hand, I managed to download the same torrent on filestream.me.

here's the torrent I used: https://bakabt.me/download/180332/1453999514/dd8249760304a541d8c8a85cc62a3d11/1867873/military-480p-horriblesubs.torrent

P.S. Thank you for your awesome script.

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

No branches or pull requests

4 participants