From 3c209a800b00c5d0b1bb48f6bccdc48d05b62efc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 28 Apr 2020 13:49:31 +0200 Subject: [PATCH] New popcorn time API URLs --- platypush/plugins/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/torrent.py b/platypush/plugins/torrent.py index 63eaafc0..991d4010 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://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