1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 01:20:32 +00:00

Update load metadata

This commit is contained in:
Ozzie Isaacs 2021-07-31 09:18:05 +02:00
parent 53603f79bd
commit 702e96ddd6
5 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class ComicVine(Metadata):
"description": "ComicVine Books",
"link": "https://comicvine.gamespot.com/"
}
v['url'] = ""
v['url'] = r.get('site_detail_url', "")
val.append(v)
return val

View File

@ -48,7 +48,7 @@ class Google(Metadata):
"id": self.__id__,
"description": "Google Books",
"link": "https://books.google.com/"}
v['url'] = ""
v['url'] = "https://books.google.com/books?id=" + r['id']
val.append(v)
return val

View File

@ -52,7 +52,7 @@ class scholar(Metadata):
v['ratings'] = 0
v['series'] = ""
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'] = {
"id": self.__id__,
"description": "Google Scholar",

View File

@ -80,7 +80,7 @@ $(function () {
type: "get",
dataType: "json",
success: function success(data) {
console.log(data);
// console.log(data);
data.forEach(function(provider) {
//$("#metadata_provider").html("<ul id=\"book-list\" class=\"media-list\"></ul>");
var checked = "";

View File

@ -84,7 +84,7 @@ except ImportError:
@app.after_request
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-Frame-Options'] = 'SAMEORIGIN'
resp.headers['X-XSS-Protection'] = '1; mode=block'