Commit 935390a6 authored by mitshel's avatar mitshel
Browse files

В сортирвке последние добавленные тоже отображаются обложки

Исправлено несколько ошибок
parent 3865caca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ fb2parse = yes
cover_extract = no

# cover_show - способ показа обложек:
# 0 - не показывать (значение по умолчанию), 
# 0 - не показывать, 
# 1 - показывать заранее извлеченные обложки, 
# 2 - извлекать обложки на лету и показывать 
# 3 - показать ранее извлеченную обложку, если обложка не извлекалась, то извелечь на лету и показать
+5 −4
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ elif type_value==3:
         id='03'+id
  
       entry_start()
       entry_head('-= '+letters+' =-', reg_date, id_value)
       entry_head('-= '+letters+' =-', None, id_value)
       entry_link_subsection(id)
       entry_content('Всего: '+str(cnt)+' наименований.')
       entry_finish()
@@ -314,7 +314,7 @@ elif type_value==4:
   for (genre_id,genre_section,cnt) in opdsdb.getgenres_sections():
       id='14'+str(genre_id)
       entry_start()
       entry_head(genre_section, reg_date, id_value)
       entry_head(genre_section, None, id_value)
       entry_link_subsection(id)
       entry_content('Всего: '+str(cnt)+' книг.')
       entry_finish()
@@ -328,7 +328,7 @@ elif type_value==14:
   for (genre_id,genre_subsection,cnt) in opdsdb.getgenres_subsections(slice_value):
       id='24'+str(genre_id)
       entry_start()
       entry_head(genre_subsection, reg_date, id_value)
       entry_head(genre_subsection, None, id_value)
       entry_link_subsection(id)
       entry_content('Всего: '+str(cnt)+' книг.')
       entry_finish()
@@ -355,11 +355,12 @@ if type_value==24:
#
elif type_value==5:
   header()
   for (book_id,book_name,book_path,reg_date,book_title) in opdsdb.getlastbooks(cfg.MAXITEMS):
   for (book_id,book_name,book_path,reg_date,book_title,cover,cover_type) in opdsdb.getlastbooks(cfg.MAXITEMS):
       id='90'+str(book_id)
       entry_start()
       entry_head(book_title, reg_date, id_value)
       entry_link_subsection(id)
       entry_covers(cover,cover_type,book_id)
       entry_authors(opdsdb,book_id)
       entry_finish()
   footer()
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ class opdsDatabase:
       limitstr=""
    else:
       limitstr="limit "+str(limit)
    sql="select book_id,filename,path,registerdate,title from "+TBL_BOOKS+" where avail!=0 order by registerdate desc "+limitstr
    sql="select book_id,filename,path,registerdate,title,cover,cover_type from "+TBL_BOOKS+" where avail!=0 order by registerdate desc "+limitstr
    cursor=self.cnx.cursor()
    cursor.execute(sql)
    rows=cursor.fetchall()