Skip to content

🦃 Improvements, and adds helper script for complex scenarios and enhances Readme#2

Open
1RedOne wants to merge 4 commits intochall32:masterfrom
1RedOne:patch-1
Open

🦃 Improvements, and adds helper script for complex scenarios and enhances Readme#2
1RedOne wants to merge 4 commits intochall32:masterfrom
1RedOne:patch-1

Conversation

@1RedOne
Copy link
Copy Markdown

@1RedOne 1RedOne commented Nov 24, 2024

Hi folks,

Super happy to find this awesome tool. I found that some users of Plex have complex Libraries spanning multiple directories and that it was tricky to use the PlexParse script as is so I made a couple of tweaks that helped me out and will hopefully be very useful to others in the future as well!

Present Tooling Enhancements

I love to improve a community tool when I get the chance, so I did the following:

  • Converted the script into distinct functions
  • Added Parameters so the user can provide any named input library file and any output file
  • Added some logging

After doing that, I then found it was a lot of work to scan through XML files by hand so I added a new helper function called Invoke-PlexParseHelper, this does the following:

New Function Invoke-PlexParseHelper

The user can provide a plex URL, or else it will default to the wellknown localhost server. First, it will contact a server, retrieve a human readable list of all sections and their corresponding IDs, then prompt the user to select the section they'd like to parse to CSV. This is accomplished with a text base UI. It will also throw out with a helpful error if unable to load a library.

Next the function will enumerate all Location directories that make up the Plex Section, and then call Invoke-PlexParse to convert each XML table into usable .csv files, individually named. Excellent for batch operation.

Updated Readme

Finally I added a new section outlining how to use the new function. Thanks folks and Happy Thanksgiving

Also added parameters so the user can provide any named library and any desired output file.  Also added logging of output item
Add Invoke-PLexHelper
Adds explanation of how to use the new helper function added to this repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant