From ca070e67e72c5708ebcff51c8fa3c569f6f2c0ad Mon Sep 17 00:00:00 2001 From: coolius Date: Mon, 2 Dec 2013 10:53:47 +0000 Subject: [PATCH] Updated YIFY provider to use proxy and magnet links --- couchpotato/core/providers/torrent/yify/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/couchpotato/core/providers/torrent/yify/main.py b/couchpotato/core/providers/torrent/yify/main.py index 60b2f9b1..3cb83bb1 100644 --- a/couchpotato/core/providers/torrent/yify/main.py +++ b/couchpotato/core/providers/torrent/yify/main.py @@ -1,17 +1,17 @@ from couchpotato.core.helpers.variable import tryInt from couchpotato.core.logger import CPLog -from couchpotato.core.providers.torrent.base import TorrentProvider +from couchpotato.core.providers.torrent.base import TorrentMagnetProvider import traceback log = CPLog(__name__) -class Yify(TorrentProvider): +class Yify(TorrentMagnetProvider): urls = { - 'test' : 'https://yify-torrents.com/api', - 'search' : 'https://yify-torrents.com/api/list.json?keywords=%s&quality=%s', - 'detail': 'https://yify-torrents.com/api/movie.json?id=%s' + 'test' : 'http://yify.ftwnet.co.uk/api', + 'search' : 'http://yify.ftwnet.co.uk/api/list.json?keywords=%s&quality=%s', + 'detail': 'http://yify.ftwnet.co.uk/api/movie.json?id=%s' } http_time_between_calls = 1 #seconds @@ -41,7 +41,7 @@ class Yify(TorrentProvider): results.append({ 'id': result['MovieID'], 'name': title, - 'url': result['TorrentUrl'], + 'url': result['TorrentMagnetUrl'], 'detail_url': self.urls['detail'] % result['MovieID'], 'size': self.parseSize(result['Size']), 'seeders': tryInt(result['TorrentSeeds']),