lbry-sdk icon indicating copy to clipboard operation
lbry-sdk copied to clipboard

Allow downloading of all media in a collection

Open FuJa0815 opened this issue 3 years ago • 2 comments

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

FuJa0815 avatar May 31 '22 10:05 FuJa0815

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

  • https://github.com/lbryio/lbry-sdk/pull/3415

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

  • https://github.com/belikor/lbrytools/
  • https://github.com/belikor/lbrytools/blob/master/lbrytools.md#downloading-collections
import lbrytools
c = lbrytools.download_single("collection-music", collection=True, ddir="/whatever")

belikor avatar Jun 25 '22 14:06 belikor

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

FuJa0815 avatar Jul 01 '22 14:07 FuJa0815