Ejemplo n.º 1
0
        private bool ProcessEpub(string spath)
        {
            try
            {
                CEpubZip oEpubFile = new CEpubZip(spath);

                Console.Write(spath);
                List <string> oList = oEpubFile.FindUrlsList();

                if (oList.Count > 0)
                {
                    foreach (var VARIABLE in oList)
                    {
                        oSaveFile.Write(VARIABLE);
                    }
                    return(true);
                }

                oSaveFile.WriteLog(spath, "error.log");


                return(false);
            }
            catch (Exception ex)
            {
                oSaveFile.WriteLog(spath, "error.log");
                oSaveFile.WriteLog(ex.Message, "error.log");
                return(false);
            }
        }
Ejemplo n.º 2
0
        public List <string> FindUrlsList()
        {
            CEpubZip oEpubZip = new CEpubZip(msFilePath);

            foreach (var e in oEpubZip.ReturnEpubContents())
            {
                SearchEntry(e);
            }
            return(_urList);
        }