{"id":213,"date":"2021-08-19T15:41:37","date_gmt":"2021-08-19T07:41:37","guid":{"rendered":"https:\/\/fugary.com\/?p=213"},"modified":"2021-10-10T10:56:34","modified_gmt":"2021-10-10T02:56:34","slug":"%e7%be%a4%e6%99%96nas%e4%b8%adcalibre-web%e7%9a%84%e8%b1%86%e7%93%a3%e5%85%83%e6%95%b0%e6%8d%ae%e8%8e%b7%e5%8f%96","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=213","title":{"rendered":"\u7fa4\u6656NAS\u4e2dcalibre-web\u7684\u8c46\u74e3\u5143\u6570\u636e\u83b7\u53d6"},"content":{"rendered":"<h2>\u7fa4\u6656NAS\u4e2dcalibre-web\u7684\u8c46\u74e3\u5143\u6570\u636e\u83b7\u53d6<\/h2>\n<p>\u6700\u8fd1\u5728NAS\u7cfb\u7edf\u4e2d\u4f7f\u7528Docker\u5bb9\u5668calibre-web\u642d\u5efa\u4e86\u81ea\u5df1\u7684\u4e2a\u4eba\u56fe\u4e66\u9986\uff0c\u5728\u83b7\u53d6\u56fe\u4e66\u5143\u6570\u636e\u7684\u65f6\u5019\u53d1\u73b0\u8c46\u74e3\u6e90API\u5df2\u7ecf\u5931\u6548\u4e86\uff0c\u7f51\u4e0a\u63d0\u4f9b\u7684apikey\u90fd\u5df2\u7ecf\u4e0d\u80fd\u7528\u4e86\u3002\u8c46\u74e3\u7f51\u9875\u4e0a\u57fa\u672c\u4e5f\u662f\u9632\u722c\u866b\u7684\uff0c\u53ea\u6709\u5c11\u90e8\u5206\u7f51\u9875\u6ca1\u6709\u505a\u9632\u722c\u5904\u7406\uff0c\u4e0d\u8fc7\u4e5f\u662f\u6709\u8bbf\u95ee\u9891\u7387\u9650\u5236\u7684\uff0c\u5f53\u7136\u5bf9\u4e8e\u4e2a\u4eba\u7528\u6237\u4e5f\u662f\u591f\u7528\u4e86\u3002<\/p>\n<p>\u56e0\u6b64\u81ea\u5df1\u5f00\u53d1\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u9002\u5408calibre-web\u7684\u7a0b\u5e8f\uff0c\u53d1\u5e03\u5230docker\u5e73\u53f0\uff0c\u5bf9\u4e2a\u4eba\u7528\u6237\u83b7\u53d6\u7b80\u5355\u7684\u4e66\u7c4d\u5143\u6570\u636e\u4e5f\u662f\u591f\u7528\u4e86\u3002<\/p>\n<p>\u8c46\u74e3API\u6587\u6863\uff1a <a href=\"http:\/\/www.doubanapi.com\/book.html\">http:\/\/www.doubanapi.com\/book.html<\/a><\/p>\n<h3>\u53d1\u5e03\u5730\u5740<\/h3>\n<h4>Github\u5730\u5740<\/h4>\n<p>\u57fa\u4e8eSpringBoot+Jsoup\u5f00\u53d1\uff0c\u53ea\u6709\u6bd4\u8f83\u7b80\u5355\u7684\u51e0\u4e2a\u7c7b\u3002<\/p>\n<p>\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fugary\/simple-boot-douban-api\">https:\/\/github.com\/fugary\/simple-boot-douban-api<\/a><\/p>\n<h4>Docker\u5730\u5740<\/h4>\n<p>\u53d1\u5e03\u5230Docker\u73af\u5883\uff1a<a href=\"https:\/\/registry.hub.docker.com\/r\/fugary\/simple-boot-douban-api\/\">https:\/\/registry.hub.docker.com\/r\/fugary\/simple-boot-douban-api\/<\/a><\/p>\n<p>\u672c\u5730\u8fd0\u884c\uff1a<\/p>\n<pre><code>docker pull fugary\/simple-boot-douban-api:latest\ndocker run -it -p 8085:8085 fugary\/simple-boot-douban-api<\/code><\/pre>\n<p>\u901a\u8fc7IP\u5730\u5740\u8bbf\u95ee\uff1a<a href=\"http:\/\/ip_address:8085\/v2\/book\/search?q=%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%B3%BB%E7%BB%9F\">http:\/\/ip_address:8085\/v2\/book\/search?q=\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf<\/a><\/p>\n<p>\u8bbf\u95ee\u901f\u5ea6\u4e0d\u662f\u5f88\u5feb\uff0c\u6bd5\u7adf\u8981\u8bbf\u95ee\u5217\u8868\u9875\u548c\u8be6\u60c5\u9875\uff0c\u9ed8\u8ba4\u662f\u83b7\u53d6\u5217\u8868\u4e2d\u76843\u672c\u4e66\u7c4d\uff0c\u592a\u591a\u53ef\u80fd\u8bbf\u95ee\u9891\u7387\u592a\u9ad8\u4f1a\u88ab\u5c4f\u853d\u3002<\/p>\n<h3>\u7fa4\u6656calibre-web\u914d\u7f6e<\/h3>\n<h4>\u5b89\u88c5simple-boot-douban-api<\/h4>\n<p>\u9996\u5148\u9700\u8981\u5728\u7fa4\u6656\u7cfb\u7edf\u7684Docker\u5957\u4ef6\u4e2d\u5b89\u88c5\u3002<\/p>\n<p>Docker\u5957\u4ef6\u7684\u6ce8\u518c\u8868\u4e2d\u641c\u7d22<code>simple-boot-douban-api<\/code>\uff0c\u53cc\u51fb\u4e0b\u8f7d<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152723.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152723.png\" alt=\"1\" \/><\/div><\/p>\n<p>\u4e0b\u8f7d\u5bb9\u5668\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152752.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152752.png\" alt=\"\" \/><\/div><\/p>\n<p>\u914d\u7f6e\u81ea\u52a8\u542f\u52a8\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152816.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152816.png\" alt=\"\" \/><\/div><\/p>\n<p>\u914d\u7f6e\u7aef\u53e3\uff0c\u672c\u5730\u7aef\u53e3\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8bbe\u7f6e\uff0c\u5982\uff1a8085<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152912.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819152912.png\" alt=\"\" \/><\/div><\/p>\n<p>\u5b8c\u6210\u540e\u542f\u52a8<\/p>\n<h4>Calibre-web\u4e2d\u914d\u7f6e<\/h4>\n<p>\u627e\u5230calibre-web\u5bb9\u5668\uff08\u76ee\u524d\u4f7f\u7528\u7684\u662f<code>technosoft2000\/calibre-web<\/code>\uff09\uff0c\u67e5\u770b\u8be6\u60c5\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153159.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153159.png\" alt=\"image-20210819153158614\" \/><\/div><\/p>\n<p>\u8fdb\u5165\u7ec8\u7aef\u673a\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153609.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153609.png\" alt=\"image-20210819153608848\" \/><\/div><\/p>\n<p>\u7136\u540e\u7f16\u8f91\u6587\u4ef6\u4f7f\u7528vi\u547d\u4ee4\u3002<\/p>\n<pre><code class=\"language-shell\">vi \/calibre-web\/app\/cps\/static\/js\/get_meta.js\n# \u627e\u5230 var douban = &quot;https:\/\/api.douban.com&quot;; \u66ff\u6362\u6210\u81ea\u5df1\u7684NAS_IP\u5730\u5740\nvar douban = &quot;http:\/\/NAS_IP:8085&quot;;\n# \u5982\u679c\u4e0d\u719f\u6089vi\u547d\u4ee4\uff0c\u8fd9\u91cc\u63d0\u4f9b\u4e00\u79cd\u66f4\u5feb\u7684\u66ff\u6362\u7684\u65b9\u5f0f\uff0c\u4f7f\u7528sed\u547d\u4ee4\uff1a\nsed -i &#039;s#https:\/\/api.douban.com#http:\/\/NAS_IP:8085#g&#039; \/calibre-web\/app\/cps\/static\/js\/get_meta.js\n# \u6ce8\u610f\u4e0a\u9762\u7684\u6587\u4ef6\u8def\u5f84\u662ftechnosoft2000\/calibre-web\u955c\u50cf\u7684\u8def\u5f84\uff0c\u5982\u679c\u4f7f\u7528\u7684\u662flinuxserver\/calibre-web\uff0c\u8def\u5f84\u662f\n# \/app\/calibre-web\/cps\/static\/js\/get_meta.js<\/code><\/pre>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153736.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153736.png\" alt=\"image-20210819153736233\" \/><\/div><\/p>\n<p>\u7136\u540e\u5237\u65b0\u9875\u9762\uff0c\u518d\u6b21\u901a\u8fc7\u9875\u9762\u8bbf\u95ee\u3010\u83b7\u53d6\u5143\u6570\u636e\u3011<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153848.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210819153848.png\" alt=\"image-20210819153848204\" \/><\/div><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u6e90\u662fDouban Books\uff0c\u83b7\u53d6\u6210\u529f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7fa4\u6656NAS\u4e2dcalibre-web\u7684\u8c46\u74e3\u5143\u6570\u636e\u83b7\u53d6 \u6700\u8fd1\u5728NAS\u7cfb\u7edf\u4e2d\u4f7f\u7528Docker\u5bb9\u5668calibre-we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[45,44,46],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/213"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213"}],"version-history":[{"count":4,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}