webtorrent / webtorrent-cli

WebTorrent, the streaming torrent client. For the command line.
https://webtorrent.io
MIT License
1.17k stars 135 forks source link

Delete cache/file on close #199

Closed Quackdoc closed 2 years ago

Quackdoc commented 3 years ago

What version of this package are you using? 4.0.0 (1.5.5)

What problem do you want to solve? Prevent space from building up.

Scenario 1;

Binging content for a day when cache only wipes on reset can cause a significant buildup on file size when files are original content

Scenario 2 is a raspberry pi 4 with 8gb of ram and a 16gb boot sdcard.

Not only is space at a premium, but also life expectancy of the storage medium. it can be safer and faster to instead save the files to a ramdrive. however said ramdrive would be equally small in size. however not only can performance be significantly faster, but also help extend the life of the microSD card.

What do you think is the correct solution to this problem? Delete cache/files on exit

Are you willing to submit a pull request to implement this change? I don't have the knowledge to do so.

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?