jpillora / cloud-torrent

☁️ Cloud Torrent: a self-hosted remote torrent client
GNU Affero General Public License v3.0
5.83k stars 1.81k forks source link

Feature Request: Upload torrent #16

Open Lunik opened 9 years ago

Lunik commented 9 years ago

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 commented 9 years ago

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

Lunik commented 9 years ago

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

jpillora commented 9 years ago

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 commented 9 years ago

Can you provide a sample .torrent?

Lunik commented 9 years ago

http://www.cpasbien.pw/telechargement/cv-facile-cvitae.torrent

anacrolix commented 9 years ago

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 commented 9 years ago

$ 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 commented 9 years ago

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 commented 9 years ago

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.

Lunik commented 9 years ago

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

PavilionVI commented 8 years ago

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.