-
Notifications
You must be signed in to change notification settings - Fork 20
Description
I would like to write a client program that, given a LBRY URI (e.g. lbry://@irmf#a/irmf-logo-model-1.irmf#4),
the client downloads the data (provided that either the user has already paid for the content or the content is free).
Eventually, it would be nice to allow the user to optionally send credits if the content is gated and they have not already purchased it. But for starting out, I would just like to download the content that is either free or previously-paid-for.
I'm not finding any examples, and searching through the subdirectories, it is not obvious to me how to get started.
If I were to take a random stab-in-the-dark, for example, I might try doing the following:
lbrycrd.New(lbrycrdURL, chainParams)(What shouldlbrycrdURLandchainParamsbe?)
but then I get stuck, as none of the methods appear to be what I want.
Alternatively, maybe I need to go this route:
blobex.NewBlobExchangeClient(cc)(How should I getcccorrectly?)blobex.Download(ctx)(How do I specify the URI for the content?)
Can you please provide some guidance on the steps that need to be taken?
Thank you!