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):