Still nasty, but getting closer to a Proof of concept here
Merge branch 'master' of https://github.com/ukdtom/Plex_Offline_Indexer