mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03:02 +00:00 
			
		
		
		
	Get_meta button unfocused on return to edit books
This commit is contained in:
		| @@ -31,7 +31,7 @@ class ComicVine(Metadata): | |||||||
|         apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6" |         apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6" | ||||||
|         if self.active: |         if self.active: | ||||||
|             headers = { |             headers = { | ||||||
|                 'User-Agent': 'Not Evil Browser' # , |                 'User-Agent': 'Not Evil Browser' | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             result = requests.get("https://comicvine.gamespot.com/api/search?api_key=" |             result = requests.get("https://comicvine.gamespot.com/api/search?api_key=" | ||||||
|   | |||||||
| @@ -17,8 +17,8 @@ | |||||||
| #  along with this program. If not, see <http://www.gnu.org/licenses/>. | #  along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||||
|  |  | ||||||
| from scholarly import scholarly | from scholarly import scholarly | ||||||
|  | from flask import url_for | ||||||
|  |  | ||||||
| import json |  | ||||||
| from cps.services.Metadata import Metadata | from cps.services.Metadata import Metadata | ||||||
| #try: | #try: | ||||||
|  |  | ||||||
| @@ -51,7 +51,7 @@ class scholar(Metadata): | |||||||
|                 v['tags'] = "" |                 v['tags'] = "" | ||||||
|                 v['ratings'] = 0 |                 v['ratings'] = 0 | ||||||
|                 v['series'] = "" |                 v['series'] = "" | ||||||
|                 v['cover'] = "/../../../static/generic_cover.jpg" |                 v['cover'] = url_for('static', filename='generic_cover.jpg') | ||||||
|                 v['url'] = "" |                 v['url'] = "" | ||||||
|                 v['source'] = { |                 v['source'] = { | ||||||
|                     "id": self.__id__, |                     "id": self.__id__, | ||||||
|   | |||||||
| @@ -269,3 +269,4 @@ $("#xchange").click(function () { | |||||||
|     $("#book_title").val($("#bookAuthor").val()); |     $("#book_title").val($("#bookAuthor").val()); | ||||||
|     $("#bookAuthor").val(title); |     $("#bookAuthor").val(title); | ||||||
| }); | }); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -107,4 +107,9 @@ $(function () { | |||||||
|         $("#keyword").val(bookTitle); |         $("#keyword").val(bookTitle); | ||||||
|         doSearch(bookTitle); |         doSearch(bookTitle); | ||||||
|     }); |     }); | ||||||
|  |     $("#metaModal").on("show.bs.modal", function(e) { | ||||||
|  |         $(e.relatedTarget).one('focus', function (e) { | ||||||
|  |             $(this).blur(); | ||||||
|  |         }); | ||||||
|  |     }); | ||||||
| }); | }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs