Update python search Metadata

This commit is contained in:
Ozzie Isaacs
2021-07-08 19:14:38 +02:00
parent aa2d3d2b36
commit ec7803fa76
6 changed files with 52 additions and 21 deletions

View File

@@ -21,13 +21,14 @@
import requests
from cps.services.Metadata import Metadata
apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6"
class ComicVine(Metadata):
__name__ = "ComicVine"
__id__ = "comicvine"
def search(self, query):
val = list()
apikey = "57558043c53943d5d1e96a9ad425b0eb85532ee6"
if self.active:
headers = {
'User-Agent': 'Not Evil Browser' # ,
@@ -53,7 +54,7 @@ class ComicVine(Metadata):
v['series'] = seriesTitle
v['cover'] = r['image'].get('original_url')
v['source'] = {
"id": "comicvine",
"id": self.__id__,
"description": "ComicVine Books",
"link": "https://comicvine.gamespot.com/"
}

View File

@@ -24,6 +24,7 @@ from cps.services.Metadata import Metadata
class Google(Metadata):
__name__ = "Google"
__id__ = "google"
def search(self, query):
if self.active:
@@ -44,7 +45,7 @@ class Google(Metadata):
else:
v['cover'] = "/../../../static/generic_cover.jpg"
v['source'] = {
"id": "google",
"id": self.__id__,
"description": "Google Books",
"link": "https://books.google.com/"}
v['url'] = ""

View File

@@ -29,7 +29,8 @@ from cps.services.Metadata import Metadata
class scholar(Metadata):
__name__ = "ComicVine"
__name__ = "Google Scholar"
__id__ = "googlescholar"
def search(self, query):
val = list()
@@ -53,7 +54,7 @@ class scholar(Metadata):
v['cover'] = "/../../../static/generic_cover.jpg"
v['url'] = ""
v['source'] = {
"id": "googlescholar",
"id": self.__id__,
"description": "Google Scholar",
"link": "https://scholar.google.com/"
}