mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Fix KickAssTorrents plugin
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.21
|
#VERSION: 1.22
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -39,7 +39,7 @@ class kickasstorrents(object):
|
|||||||
self.results = []
|
self.results = []
|
||||||
|
|
||||||
def download_torrent(self, info):
|
def download_torrent(self, info):
|
||||||
print download_file(info)
|
print download_file(info, info)
|
||||||
|
|
||||||
def search(self, what, cat='all'):
|
def search(self, what, cat='all'):
|
||||||
ret = []
|
ret = []
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.21
|
#VERSION: 1.22
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -39,7 +39,7 @@ class kickasstorrents(object):
|
|||||||
self.results = []
|
self.results = []
|
||||||
|
|
||||||
def download_torrent(self, info):
|
def download_torrent(self, info):
|
||||||
print(download_file(info))
|
print(download_file(info, info))
|
||||||
|
|
||||||
def search(self, what, cat='all'):
|
def search(self, what, cat='all'):
|
||||||
ret = []
|
ret = []
|
||||||
|
|||||||
@@ -421,7 +421,8 @@ void SearchEngine::downloadTorrent(QString engine_url, QString torrent_url) {
|
|||||||
qDebug("Converting bc link to magnet link");
|
qDebug("Converting bc link to magnet link");
|
||||||
torrent_url = misc::bcLinkToMagnet(torrent_url);
|
torrent_url = misc::bcLinkToMagnet(torrent_url);
|
||||||
}
|
}
|
||||||
if(torrent_url.startsWith("magnet:")) {
|
qDebug() << Q_FUNC_INFO << torrent_url;
|
||||||
|
if (torrent_url.startsWith("magnet:")) {
|
||||||
QStringList urls;
|
QStringList urls;
|
||||||
urls << torrent_url;
|
urls << torrent_url;
|
||||||
mp_mainWindow->downloadFromURLList(urls);
|
mp_mainWindow->downloadFromURLList(urls);
|
||||||
|
|||||||
Reference in New Issue
Block a user