🦃 Improvements, and adds helper script for complex scenarios and enhances Readme#2
Open
1RedOne wants to merge 4 commits intochall32:masterfrom
Open
🦃 Improvements, and adds helper script for complex scenarios and enhances Readme#21RedOne wants to merge 4 commits intochall32:masterfrom
1RedOne wants to merge 4 commits intochall32:masterfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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