webtorrent / webtorrent

⚡️ Streaming torrent client for the web
https://webtorrent.io
MIT License
29.22k stars 2.69k forks source link

Metadata is forgotten on page reload #2829

Open danielblnc opened 1 week ago

danielblnc commented 1 week ago

Torrent metadata is forgotten by the browser after a page reload, even though the downloaded files are still there. If we are the only seed, this results in a dead torrent until a new peer with metadata appears in the swarm and our browser connects to it.

What version of this package are you using? 2.3.2

What operating system, Node.js, and npm version? Chrome, Edge, Brave

ThaUnknown commented 1 week ago

yes, webtorrent only stores torrent file data, metadata isn't stored, you need to implement that functionality yourself

danielblnc commented 1 week ago

Is there a specific reason for this? It feels like keeping the metadata would be desirable.

ThaUnknown commented 1 week ago

it's a library, not a torrent client, for a torrent client it makes sense, for a library not so much