Esempio n. 1
0
        public override object StoreData(bool isMovie, TempThread tempThred)
        {
            if (!isMovie)
            {
                return(null);
            }
            RealShiroItem?[] items = new RealShiroItem?[2] {
                null, null
            };
            bool returnNull = true;
            var  bData      = shiroBase.StoreData(tempThred, ToDown(ActiveMovie.title.name).Replace("  ", ""));

            foreach (var data in bData)
            {
                if (data.year != ActiveMovie.title.year.Substring(0, 4))
                {
                    continue;
                }
                if (data.synonyms.Contains(data.name) || ToDown(data.name) == ToDown(ActiveMovie.title.name) || ToDown(data.name) == ToDown(ActiveMovie.title.ogName))
                {
                    returnNull = false;
                    items[data.isDub ? 1 : 0] = data;
                }
            }
            return(returnNull ? null : items);
        }
Esempio n. 2
0
 public override object StoreData(string year, TempThread tempThred, MALData malData)
 {
     return(shiroBase.StoreData(tempThred, malData.engName));
 }