Loading .htaccess +4 −4 Original line number Diff line number Diff line DirectoryIndex index.xml Options ExecCGI #AuthType Basic #AuthName "SOPDS Library" #AuthUserFile /home/www/.htpasswd #require valid-user AuthType Basic AuthName "SOPDS Library" AuthUserFile /home/www/.htpasswd require valid-user py/sopds.cgi +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ def entry_link_book(link_id,format): # enc_print('<link type="application/'+format+'" rel="alternate" href="'+cfg.CGI_PATH+'?id=91'+str_id+'"/>') if format.lower()=='fb2' and cfg.FB2TOEPUB: enc_print('<link type="application/epub" href="'+cfg.CGI_PATH+'?id=93'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/epub+zip" href="'+cfg.CGI_PATH+'?id=93'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/'+format+'" href="'+cfg.CGI_PATH+'?id=91'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/'+format+'+zip" href="'+cfg.CGI_PATH+'?id=92'+str_id+'" rel="http://opds-spec.org/acquisition" />') Loading Loading
.htaccess +4 −4 Original line number Diff line number Diff line DirectoryIndex index.xml Options ExecCGI #AuthType Basic #AuthName "SOPDS Library" #AuthUserFile /home/www/.htpasswd #require valid-user AuthType Basic AuthName "SOPDS Library" AuthUserFile /home/www/.htpasswd require valid-user
py/sopds.cgi +1 −0 Original line number Diff line number Diff line Loading @@ -127,6 +127,7 @@ def entry_link_book(link_id,format): # enc_print('<link type="application/'+format+'" rel="alternate" href="'+cfg.CGI_PATH+'?id=91'+str_id+'"/>') if format.lower()=='fb2' and cfg.FB2TOEPUB: enc_print('<link type="application/epub" href="'+cfg.CGI_PATH+'?id=93'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/epub+zip" href="'+cfg.CGI_PATH+'?id=93'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/'+format+'" href="'+cfg.CGI_PATH+'?id=91'+str_id+'" rel="http://opds-spec.org/acquisition" />') enc_print('<link type="application/'+format+'+zip" href="'+cfg.CGI_PATH+'?id=92'+str_id+'" rel="http://opds-spec.org/acquisition" />') Loading