PlexExternalPlayer
PlexExternalPlayer copied to clipboard
Save and load remote mapping settings between the updates
Currently the script auto-updating by default and erasing all user-made changes, like mappings, to the code.
I suggest that on the first ever script launch user would be prompted for those settings (not sure how to handle options best in a userscript though). Then it will be stored in local storage and retrieved again after every update. Also this probably should be accessible and editable from plex settings page for better usability.
And there could be multiple mappings for multiple servers/media paths/mount paths.
What do you think? It looks easy to implement at the first glance, I could try to make a pull request sometime in the future.
Its probably something for the agent rather than storing state in the browser. If it doesn't find a file then it asks if you want to add a mapping or similar?
Hmm, that totally makes sense, didn't even think of it, cause I don't have any experience with C#. Mapping would be so much user-friendly if made with system "select the folder" interface.