From 94325f92541dc5ca775f9e3f98408bf7baa88503 Mon Sep 17 00:00:00 2001 From: imDMG Date: Thu, 17 Jan 2019 19:13:11 +0500 Subject: [PATCH] added readme file --- README.md | 18 ++++++++++++++++++ kinozal.py | 8 ++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf105c2 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# qBittorrent plugins + +............. + +## Kinozal.tv + + +## Installation +* Edit `kinozal.py` by replacing `KINOZAL_USERNAME` and `KINOZAL_PASSWORD` with your Kinozal username and password. +* If kinozal.tv is blocked in your country, in same file: + * find `proxy = False` and switch in `True` (`proxy = True`) + * add proxy links working for you in `proxies` (`proxies = {'http': 'proxy.example.org:8080'}`) + * *make sure that your proxy work with right protocol* +* Move `kinozal.py` and `kinozal.png` to qBittorrent search engines directory: + * Windows: `%localappdata%\qBittorrent\nova3\engines\` + * Linux: `~/.local/share/data/qBittorrent/nova3/engines/` + * OS X: `~/Library/Application Support/qBittorrent/nova3/engines/` +* Kinozal search engine should now be available in qBittorrent. \ No newline at end of file diff --git a/kinozal.py b/kinozal.py index 1f6a551..d047c00 100644 --- a/kinozal.py +++ b/kinozal.py @@ -6,7 +6,7 @@ import tempfile import os import logging -import time +# import time from urllib.request import build_opener, HTTPCookieProcessor, ProxyHandler from urllib.parse import urlencode, quote, unquote @@ -41,15 +41,15 @@ class kinozal(object): # Set proxies (default false) # make sure that proxies keys is'nt empty - proxy = True + proxy = False proxies = { 'http': '', 'https': '', } # credentials - username = "USERNAME" - password = "PASSWORD" + username = "KINOZAL_USERNAME" + password = "KINOZAL_PASSWORD" ua = 'Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0' def __init__(self):