New popcorn time API URLs

This commit is contained in:
Fabio Manganiello 2020-04-28 13:49:31 +02:00
parent 42d29ca1f6
commit 3c209a800b

View file

@ -117,7 +117,7 @@ class TorrentPlugin(Plugin):
def search_movies(self, query, language=None):
request = urllib.request.urlopen(urllib.request.Request(
'https://popcorn-api.io/movies/1?' + urllib.parse.urlencode({
'https://movies-v2.api-fetch.sh/movies/1?' + urllib.parse.urlencode({
'sort': 'relevance',
'keywords': query,
}), headers=self.headers
@ -149,7 +149,7 @@ class TorrentPlugin(Plugin):
def search_tv(self, query):
request = urllib.request.urlopen(urllib.request.Request(
'https://popcorn-api.io/shows/1?' + urllib.parse.urlencode({
'https://tv-v2.api-fetch.sh/shows/1?' + urllib.parse.urlencode({
'sort': 'relevance',
'keywords': query,
}), headers=self.headers