Ejemplo n.º 1
0
        public Dictionary <string, XmlDocument> GetFullSeriesInfo(int seriesID)
        {
            try
            {
                Init();

                string url = string.Format(Shoko.Server.Constants.TvDBURLs.urlFullSeriesData, urlMirror,
                                           Shoko.Server.Constants.TvDBURLs.apiKey,
                                           seriesID,
                                           ServerSettings.TvDB_Language);
                logger.Trace("GetFullSeriesInfo: {0}", url);

                Stream data = Utils.DownloadWebBinary(url);
                if (data != null)
                {
                    // this will get following xml files: en.xml, actors.xml, banners.xml
                    return(DecompressZipToXmls(data));
                }
                else
                {
                    logger.Trace("GetFullSeriesInfo: data was null");
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Error in TVDBHelper.GetFullSeriesInfo: " + ex.ToString());
            }

            return(null);
        }