From 1bd52adf74d776db7de05fb72bbf23df45b8b675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 21:02:27 +0100 Subject: [PATCH] Fix Ygg sorting --- connectors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connectors.py b/connectors.py index 1a1fc4c..c54ae60 100644 --- a/connectors.py +++ b/connectors.py @@ -354,9 +354,10 @@ class YggTorrent(Connector): sort_type = 'size' if self.return_type is ConnectorReturn.HISTORY: sort_type = 'publish_date' + sort_page = '&page=%s' % self.page if self.page > 1 else '' - return '%s/engine/search?do=search&order=desc&sort=%s&category=2145&sub_category=%s&name=%s&page=%s' % ( - self.base_url, sort_type, self.category, self.query, self.page + return '%s/engine/search?name=%s&category=2145&sub_category=%s&do=search&order=desc&sort=%s%s' % ( + self.base_url, self.query, self.category, sort_type, sort_page ) def get_history(self):