Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon.jsonrpc_get: add download_collection option for handling collections #3415

Closed
wants to merge 1 commit into from

Commits on Sep 12, 2021

  1. Daemon.jsonrpc_get: add download_collection option for handling col…

    …lections
    
    Normally, if a particular claim is in fact a collection (playlist),
    it will not be downloaded, as it is not a stream.
    ```
    lbrynet get collection-claim
    ```
    
    Will result in
    ```
    {
      "error": "Claim is not a stream."
    }
    ```
    
    To resolve the collection, and download the claims that it contains
    we can use the option `--download_collection`.
    ```
    lbrynet get collection-claim --download_collection
    ```
    
    A collection can have an arbitrary number of items, so to limit
    the number of claims to download we can use `--max_claims`.
    ```
    lbrynet get collection-claim --download_collection --max_claims=4
    ```
    
    To reverse the order of the claims in the collection
    use `--reverse_collection`. This can be used to get the newest
    items in the collection.
    ```
    lbrynet get collection-claim --download_collection --max_claims=10 --reverse_collection
    ```
    belikor committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    b2f8327 View commit details
    Browse the repository at this point in the history