lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 414 forks source link

Download folder management #4634

Open b0nk opened 4 years ago

b0nk commented 4 years ago

If a user decides to check "Save all viewed content to your downloads directory" there is no way to check how large the folder is within the program.

An option (or several) to manage the downloads folder would be useful in the Settings section.

Suggestions:

tzarebczan commented 4 years ago

Thanks for filing this issue! It will require some work on the SDK under https://github.com/lbryio/lbry-sdk/issues/1311

d1vi commented 3 years ago

I would like to add to this topic the following feature:

Lbry desktop currently saves all files under root Download directory path with files original names, as channel owner uploaded them. I think it's sensible to save all files under a folder struture using channel name as folder name and files of downloaded videos inside each folder respectively.

Screenshot from 2020-12-11 09-51-54

Like

{Download directory}\channel_name{file_name}

instead of

{Download directory}{file_name}

belikor commented 3 years ago

This issue is partially taken care of by my library, lbrytools.

It also applies to https://github.com/lbryio/lbry-sdk/issues/1311

It basically inspects the top level directory of the subdirectories that hold the media files and blobfiles. If it crosses a limit in gigabytes, it will start cleaning up older files. It can delete media files (mp4, mkv, etc.), blobs, or both.

lbrytools.cleanup_space(main_dir="/home/user", size=1000, percent=90, what="media")

I think it's sensible to save all files under a folder struture using channel name

This is the default behavior in my tools.

d = lbrytools.download_single("some-video", own_dir=True, ddir="/home/user/Downloads")