Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSeed file from Google Drive to webtorrent? #1460
Comments
This comment has been minimized.
This comment has been minimized.
|
Jesus Christ, i come here just to ask the same thing. Are you me? |
This comment has been minimized.
This comment has been minimized.
|
A "direct" connection to google drive, with the public link, is something really niiice |
This comment has been minimized.
This comment has been minimized.
|
If the content can be hotlinked, then it can be used as a webseed :) |
This comment has been minimized.
This comment has been minimized.
|
I thought you had to create a torrent for the file to have it webseeded? |
This comment has been minimized.
This comment has been minimized.
|
It would be cool if you could construct your own WebSeed with custom get mechanism. Everything isn't as simple as a GET request with range header Some require credentials, you might be dealing with streams coming from a socket (Google FireStore) or other storage that don't play nice with easy hot linking. Perhaps the file isn't as well mapped as a file hierarchy maybe the file is only accessible by a hash/id identifier, you could build something that uses ftp, afp, smb protocol. Something like this peer = new WebSeed({
async get(pieceIndex, offset, length) {
const blob_or_arraybufer = await getPiece(...args)
return blob_or_arraybufer
}
destroy() {
}
}, torrent)you could then implement a WebSeed using any cloud storage API Or to make any hybrid torrent client to a WebSeed (#1475, #325) |
This comment has been minimized.
This comment has been minimized.
|
Note that google drive have several limitations: request limit, download limit, quota limit and CORS |
This comment has been minimized.
This comment has been minimized.
|
@fredsif you have to pre-create the torrent with the file. See https://hackernoon.com/how-to-create-a-swarm-cdn-for-free-with-webtorrent-bfa09d193f71 if Google Drive doesn't support CORS there's nothing we can do. |
is it possible to seed file from Google Drive as Drive has unlimited storage as backup and good network? how about if mount the Drive on the VPS