lbryio / lbry-sdk

The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
https://lbry.com
MIT License
7.19k stars 484 forks source link

Allow downloading of all media in a collection #3615

Open FuJa0815 opened 2 years ago

FuJa0815 commented 2 years ago

It seems like there is no way of downloading every media in a collection.

Currently, you have to resolve the collection via lbrynet collection resolve --url=lbry://@OdyseeHelp#b/Video-Tutorials, extract all claimids of the items and lbrynet get them one after another. It would be great if you could simply do something like lbrynet get --url=lbry://@OdyseeHelp#b/Video-Tutorials --download_directory=/whatever

belikor commented 2 years ago

There was an attempt to add this functionality but I didn't pursue it further to focus on other things.

However, you can use my library that adds some functionality not available in the original SDK.

import lbrytools
c = lbrytools.download_single("collection-music", collection=True, ddir="/whatever")
FuJa0815 commented 2 years ago

I think that might be a good first issue for me personally. Maybe I'll try implementing this when I have time.