search_* methods can't be static
This commit is contained in:
parent
86d38b421a
commit
e673b3e0c7
1 changed files with 3 additions and 6 deletions
|
@ -115,8 +115,7 @@ class TorrentPlugin(Plugin):
|
||||||
ret += items
|
ret += items
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@staticmethod
|
def search_movies(self, query, language=None):
|
||||||
def search_movies(query, language=None):
|
|
||||||
request = urllib.request.urlopen(urllib.request.Request(
|
request = urllib.request.urlopen(urllib.request.Request(
|
||||||
'https://movies-v2.api-fetch.website/movies/1?' + urllib.parse.urlencode({
|
'https://movies-v2.api-fetch.website/movies/1?' + urllib.parse.urlencode({
|
||||||
'sort': 'relevance',
|
'sort': 'relevance',
|
||||||
|
@ -148,8 +147,7 @@ class TorrentPlugin(Plugin):
|
||||||
for (quality, item) in items.items()
|
for (quality, item) in items.items()
|
||||||
], key=lambda _: _.get('seeds'), reverse=True)
|
], key=lambda _: _.get('seeds'), reverse=True)
|
||||||
|
|
||||||
@staticmethod
|
def search_tv(self, query):
|
||||||
def search_tv(query):
|
|
||||||
request = urllib.request.urlopen(urllib.request.Request(
|
request = urllib.request.urlopen(urllib.request.Request(
|
||||||
'https://tv-v2.api-fetch.website/shows/1?' + urllib.parse.urlencode({
|
'https://tv-v2.api-fetch.website/shows/1?' + urllib.parse.urlencode({
|
||||||
'sort': 'relevance',
|
'sort': 'relevance',
|
||||||
|
@ -198,8 +196,7 @@ class TorrentPlugin(Plugin):
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
@staticmethod
|
def search_anime(self, query):
|
||||||
def search_anime(query):
|
|
||||||
request = urllib.request.urlopen(urllib.request.Request(
|
request = urllib.request.urlopen(urllib.request.Request(
|
||||||
'https://anime.api-fetch.website/animes/1?' + urllib.parse.urlencode({
|
'https://anime.api-fetch.website/animes/1?' + urllib.parse.urlencode({
|
||||||
'sort': 'relevance',
|
'sort': 'relevance',
|
||||||
|
|
Loading…
Reference in a new issue