Loading conf/sopds.conf +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ fb2parse = yes # если cover _show = 1 или 3 # Установка этой опции в yes значительно замедляет сканирование каталога (в 4-5 раз) # Но зато обложки в OPDS-клиенте будут загружаться практически мгновенно cover_extract = no cover_extract = yes # cover_show - способ показа обложек: # 0 - не показывать, Loading logs/sopds.log +1150 −0 File changed.Preview size limit exceeded, changes collapsed. Show changes py/sopds-scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ if (__name__=="__main__"): else: cfg=sopdscfg.cfgreader(CFG_FILE) logger = logging.getLogger('') logger.setLevel(cfg.LOGLEVEL) logger.setLevel(logging.DEBUG) formatter=logging.Formatter('%(asctime)s %(levelname)-8s %(message)s') if cfg.LOGLEVEL!=logging.NOTSET: Loading py/sopdscan.py +1 −18 Original line number Diff line number Diff line Loading @@ -22,23 +22,6 @@ class opdsScanner: zipf.ZIP_CODEPAGE=self.cfg.ZIP_CODEPAGE self.extensions_set={x for x in self.cfg.EXT_LIST} # def init_logger(self): # if self.cfg.LOGLEVEL!=logging.NOTSET: # # Создаем обработчик для записи логов в файл # self.fh = logging.FileHandler(self.cfg.LOGFILE) # self.fh.setLevel(self.cfg.LOGLEVEL) # # if self.VERBOSE: # # Создадим обработчик для вывода логов на экран с максимальным уровнем вывода # self.ch = logging.StreamHandler() # self.ch.setLevel(logging.DEBUG) # # logformat='%(asctime)s %(levelname)-8s %(message)s' # if self.VERBOSE: # logging.basicConfig(format = logformat, level = logging.DEBUG, handlers=(self.fh,self.ch)) # else: # logging.basicConfig(format = logformat, level = logging.INFO, handlers=(self.fh,)) def init_stats(self): self.t1=datetime.timedelta(seconds=time.time()) self.t2=self.t1 Loading Loading @@ -174,7 +157,7 @@ class opdsScanner: if e.lower()=='.fb2' and self.cfg.FB2PARSE and self.cfg.COVER_EXTRACT: try: create_cover(book_id) self.create_cover(book_id) except: self.logger.error('Error extract cover from file '+name) Loading Loading
conf/sopds.conf +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ fb2parse = yes # если cover _show = 1 или 3 # Установка этой опции в yes значительно замедляет сканирование каталога (в 4-5 раз) # Но зато обложки в OPDS-клиенте будут загружаться практически мгновенно cover_extract = no cover_extract = yes # cover_show - способ показа обложек: # 0 - не показывать, Loading
py/sopds-scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ if (__name__=="__main__"): else: cfg=sopdscfg.cfgreader(CFG_FILE) logger = logging.getLogger('') logger.setLevel(cfg.LOGLEVEL) logger.setLevel(logging.DEBUG) formatter=logging.Formatter('%(asctime)s %(levelname)-8s %(message)s') if cfg.LOGLEVEL!=logging.NOTSET: Loading
py/sopdscan.py +1 −18 Original line number Diff line number Diff line Loading @@ -22,23 +22,6 @@ class opdsScanner: zipf.ZIP_CODEPAGE=self.cfg.ZIP_CODEPAGE self.extensions_set={x for x in self.cfg.EXT_LIST} # def init_logger(self): # if self.cfg.LOGLEVEL!=logging.NOTSET: # # Создаем обработчик для записи логов в файл # self.fh = logging.FileHandler(self.cfg.LOGFILE) # self.fh.setLevel(self.cfg.LOGLEVEL) # # if self.VERBOSE: # # Создадим обработчик для вывода логов на экран с максимальным уровнем вывода # self.ch = logging.StreamHandler() # self.ch.setLevel(logging.DEBUG) # # logformat='%(asctime)s %(levelname)-8s %(message)s' # if self.VERBOSE: # logging.basicConfig(format = logformat, level = logging.DEBUG, handlers=(self.fh,self.ch)) # else: # logging.basicConfig(format = logformat, level = logging.INFO, handlers=(self.fh,)) def init_stats(self): self.t1=datetime.timedelta(seconds=time.time()) self.t2=self.t1 Loading Loading @@ -174,7 +157,7 @@ class opdsScanner: if e.lower()=='.fb2' and self.cfg.FB2PARSE and self.cfg.COVER_EXTRACT: try: create_cover(book_id) self.create_cover(book_id) except: self.logger.error('Error extract cover from file '+name) Loading