Пример #1
0
        protected void loadMappedLocations()
        {
            PlexLocationMapping plexLocationMapping = PlexLocationMapping.ReadFromFile(locationMappingFileName());

            PMSServer.DirectorySeparator    = plexLocationMapping.DirectorySeparator;
            AutoShownLocationMappingOnEmpty = !plexLocationMapping.ShownOnEmptyMappedlocation;
            copyMappedLocations(plexLocationMapping.Locations, m_sectionLocations, false);
        }
Пример #2
0
        protected void saveMappedLocations()
        {
            PlexLocationMapping plexLocationMapping = PlexLocationMapping.ReadFromFile(locationMappingFileName());

            plexLocationMapping.DirectorySeparator         = PMSServer.DirectorySeparator;
            plexLocationMapping.ShownOnEmptyMappedlocation = !AutoShownLocationMappingOnEmpty;
            copyMappedLocations(m_sectionLocations, plexLocationMapping.Locations, true);

            plexLocationMapping.Save(locationMappingFileName());
        }