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.
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-lis 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
API notes
/library/sections= need to extractkeyandtitleand filter ontype=artist