/// <summary>
        /// Returns extended plugin information that Media Center Master will read to negotiate
        /// how to properly use your plugin.  It's important that this information is always
        /// kept current and is formatted precisely.
        /// 
        /// Required for:
        ///     all plugin types
        /// </summary>
        /// <returns>A serialized MCM_Common.PluginDetails object</returns>
        public static string Vitals()
        {
            PluginDetails vitals = new PluginDetails();

            // Fill in the following information about your plugin
            vitals.Author = "Andre Grebennikov";
            vitals.Name = "The Kinopoisk Database meta data fetcher for Media Center Master.";
            vitals.Version = "1.00";
            vitals.Source = "kinopoisk.ru";
            vitals.LanguageCode = "ru/Russian";

            // Respect the user's date formatting by reparsing the date
            vitals.ReleaseDate = DateTime.Parse("2012/01/28").ToShortDateString();

            // Make sure you register your plugin as one of the available types so that future
            // versions of Media Center Master can display the plugin on the correct screen and so
            // that it knows how to interface with your plugin.
            vitals.PluginType = PluginTypes.MovieMetaFetcher;

            // Enter the plugin system version you support.  If unknown, leave it as the default.
            vitals.PluginSystemVersion = 2.0;

            // Set this to either Scrape or API depending on if your method uses HTML scrapes or an
            // actual API system (such as XML).
            vitals.SourceType = PluginSourceType.API;

            // Data needs to be serialized (converted to XML)
            return Utils.SerializeObject(vitals);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns extended plugin information that Media Center Master will read to negotiate
        /// how to properly use your plugin.  It's important that this information is always
        /// kept current and is formatted precisely.
        /// 
        /// Required for:
        ///     all plugin types
        /// </summary>
        /// <returns>A serialized MCM_Common.PluginDetails object</returns>
        public static string Vitals()
        {
            PluginDetails vitals = new PluginDetails();

            // Fill in the following information about your plugin
            vitals.Author = "Digiwiz";
            vitals.Name = "Digiwiz's Adult DVD Empire plugin meta data fetcher for Media Center Master.";
            vitals.Version = "1.1";
            vitals.Source = "adultdvdempire.com(digiwiz)";

            // Respect the user's date formatting by reparsing the date
            vitals.ReleaseDate = DateTime.Parse("2015/09/18").ToShortDateString();

            // Make sure you register your plugin as one of the available types so that future
            // versions of Media Center Master can display the plugin on the correct screen and so
            // that it knows how to interface with your plugin.
            vitals.PluginType = PluginTypes.AdultMetaFetcher;

            // Enter the plugin system version you support.  If unknown, leave it as the default.
            vitals.PluginSystemVersion = 2.2;

            // Set this to either Scrape or API depending on if your method uses HTML scrapes or an
            // actual API system (such as XML).
            vitals.SourceType = PluginSourceType.Scrape;

            // Data needs to be serialized (converted to XML)
            return Utils.SerializeObject(vitals);
        }