Skip to content

Make -l optional as not needed for single music library #21

Description

@mrsilver76

Currently --library (-l) is mandatory and it's a bit of a pain to find out your music library. A better solution would be to automatically discover music libraries when -l is not provided.

If there is only one music library then use that.

If there is more than one music library, then display a message to the user stating that there is more than one library, that they need to pick a library ID and then then list out the possible libraries.

Mockup

 ⚠️ Warning: 4 music libraries were found in Plex. You will need to use --library <id>
    to specify the exact library that contains your playlist tracks.
    
    ID     Library name
    ---------------------
    1       Rita's music
    3       Bob's thrash
    17      Random techno
    22      Kids music

    For more information, please read the FAQ:
      https://github.com/mrsilver76/listporter/FAQ.md#multilibrary

API notes

  • /library/sections = need to extract key and title and filter on type = artist
  • Need to sort by key so that library IDs are shown in ascending order.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions