From fd10b2260c00402bd75c4ae975397511cea1b6d7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 29 Sep 2019 10:31:00 +0200 Subject: [PATCH] Changed PopcornTime endpoints --- platypush/plugins/torrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/torrent.py b/platypush/plugins/torrent.py index 2ab1fd92f..75a085943 100644 --- a/platypush/plugins/torrent.py +++ b/platypush/plugins/torrent.py @@ -117,7 +117,7 @@ class TorrentPlugin(Plugin): def search_movies(self, query, language=None): request = urllib.request.urlopen(urllib.request.Request( - 'https://movies-v2.api-fetch.website/movies/1?' + urllib.parse.urlencode({ + 'https://popcorn-api.io/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://tv-v2.api-fetch.website/shows/1?' + urllib.parse.urlencode({ + 'https://popcorn-api.io/shows/1?' + urllib.parse.urlencode({ 'sort': 'relevance', 'keywords': query, }), headers=self.headers @@ -198,7 +198,7 @@ class TorrentPlugin(Plugin): def search_anime(self, query): request = urllib.request.urlopen(urllib.request.Request( - 'https://anime.api-fetch.website/animes/1?' + urllib.parse.urlencode({ + 'https://popcorn-api.io/animes/1?' + urllib.parse.urlencode({ 'sort': 'relevance', 'keywords': query, }), headers=self.headers