Loading conf/sopds.conf +2 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,8 @@ title_as_filename = yes alphabet_menu = yes #new_period = N - количество суток в течении которых добавленные книги считаются новыми, по умолчанию 7 дней new_period = 1 #Если new_period=0, то меню новинок не будет выводится вовсе new_period = 7 [site] id=http://sopds.ru/ Loading py/sopds.cgi +5 −4 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ def main_menu(): enc_print('<content type="text">Серий: %s.</content>'%dbinfo[4][1]) enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id='+am+'06"/>') enc_print('<id>id:06</id></entry>') if cfg.NEW_PERIOD!=0: enc_print('<entry>') enc_print('<title>Новинки за %s суток</title>'%cfg.NEW_PERIOD) enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id=05"/>') Loading Loading
conf/sopds.conf +2 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,8 @@ title_as_filename = yes alphabet_menu = yes #new_period = N - количество суток в течении которых добавленные книги считаются новыми, по умолчанию 7 дней new_period = 1 #Если new_period=0, то меню новинок не будет выводится вовсе new_period = 7 [site] id=http://sopds.ru/ Loading
py/sopds.cgi +5 −4 Original line number Diff line number Diff line Loading @@ -110,6 +110,7 @@ def main_menu(): enc_print('<content type="text">Серий: %s.</content>'%dbinfo[4][1]) enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id='+am+'06"/>') enc_print('<id>id:06</id></entry>') if cfg.NEW_PERIOD!=0: enc_print('<entry>') enc_print('<title>Новинки за %s суток</title>'%cfg.NEW_PERIOD) enc_print('<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="'+cfg.CGI_PATH+'?id=05"/>') Loading