mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-26 01:50:31 +00:00
Update load metadata
This commit is contained in:
parent
53603f79bd
commit
702e96ddd6
@ -58,7 +58,7 @@ class ComicVine(Metadata):
|
|||||||
"description": "ComicVine Books",
|
"description": "ComicVine Books",
|
||||||
"link": "https://comicvine.gamespot.com/"
|
"link": "https://comicvine.gamespot.com/"
|
||||||
}
|
}
|
||||||
v['url'] = ""
|
v['url'] = r.get('site_detail_url', "")
|
||||||
val.append(v)
|
val.append(v)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class Google(Metadata):
|
|||||||
"id": self.__id__,
|
"id": self.__id__,
|
||||||
"description": "Google Books",
|
"description": "Google Books",
|
||||||
"link": "https://books.google.com/"}
|
"link": "https://books.google.com/"}
|
||||||
v['url'] = ""
|
v['url'] = "https://books.google.com/books?id=" + r['id']
|
||||||
val.append(v)
|
val.append(v)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class scholar(Metadata):
|
|||||||
v['ratings'] = 0
|
v['ratings'] = 0
|
||||||
v['series'] = ""
|
v['series'] = ""
|
||||||
v['cover'] = url_for('static', filename='generic_cover.jpg')
|
v['cover'] = url_for('static', filename='generic_cover.jpg')
|
||||||
v['url'] = ""
|
v['url'] = publication.get('pub_url') or publication.get('eprint_url') or "",
|
||||||
v['source'] = {
|
v['source'] = {
|
||||||
"id": self.__id__,
|
"id": self.__id__,
|
||||||
"description": "Google Scholar",
|
"description": "Google Scholar",
|
||||||
|
@ -80,7 +80,7 @@ $(function () {
|
|||||||
type: "get",
|
type: "get",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function success(data) {
|
success: function success(data) {
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
data.forEach(function(provider) {
|
data.forEach(function(provider) {
|
||||||
//$("#metadata_provider").html("<ul id=\"book-list\" class=\"media-list\"></ul>");
|
//$("#metadata_provider").html("<ul id=\"book-list\" class=\"media-list\"></ul>");
|
||||||
var checked = "";
|
var checked = "";
|
||||||
|
@ -84,7 +84,7 @@ except ImportError:
|
|||||||
|
|
||||||
@app.after_request
|
@app.after_request
|
||||||
def add_security_headers(resp):
|
def add_security_headers(resp):
|
||||||
# resp.headers['Content-Security-Policy']= "script-src 'self' https://www.googleapis.com https://api.douban.com https://comicvine.gamespot.com;"
|
resp.headers['Content-Security-Policy']= "script-src 'self'"
|
||||||
resp.headers['X-Content-Type-Options'] = 'nosniff'
|
resp.headers['X-Content-Type-Options'] = 'nosniff'
|
||||||
resp.headers['X-Frame-Options'] = 'SAMEORIGIN'
|
resp.headers['X-Frame-Options'] = 'SAMEORIGIN'
|
||||||
resp.headers['X-XSS-Protection'] = '1; mode=block'
|
resp.headers['X-XSS-Protection'] = '1; mode=block'
|
||||||
|
Loading…
Reference in New Issue
Block a user