added readme file

This commit is contained in:
imDMG 2019-01-17 19:13:11 +05:00
parent d2103e1759
commit 94325f9254
2 changed files with 22 additions and 4 deletions

18
README.md Normal file
View File

@ -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.

View File

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