This commit is contained in:
poka 2020-03-26 21:32:55 +01:00
commit 1a1dd8db26
3 changed files with 11 additions and 5 deletions

View File

@ -25,7 +25,7 @@ from termcolor import colored
# Load scraper # Load scraper
from yggcrawl import YggTorrentScraper from yggcrawl import YggTorrentScraper
scraper = YggTorrentScraper(requests.session()) scraper = YggTorrentScraper(requests.session())
from yggtorrentscraper import set_yggtorrent_tld from yggcrawl import set_yggtorrent_tld
set_yggtorrent_tld("se") set_yggtorrent_tld("se")
name = ' '.join(sys.argv[1:]) name = ' '.join(sys.argv[1:])

View File

@ -28,9 +28,15 @@ sbotc() {
} }
# Install Transmission # Install Transmission
transmisison() { transmission() {
echo -e "${c_yellow}Installing Transmision...$c_" echo -e "${c_yellow}Installing Transmision...$c_"
sudo apt install transmission-daemon --install-suggests sudo apt install transmission-daemon --install-suggests
sudo apt install transmission-cli
# stop
# Copy login.py info to /etc/transmission/settings.json
# start
} }
# Install pip tools # Install pip tools
@ -68,8 +74,8 @@ pip3() {
iptubes() { iptubes() {
[[ -z $(which pip3) ]] && pip3 [[ -z $(which pip3) ]] && pip3
/usr/bin/pip3 install $(curl -s https://raw.githubusercontent.com/Harkame/YggTorrentScraper/master/requirements.txt) /usr/bin/pip3 install $(curl -s https://raw.githubusercontent.com/Harkame/YggTorrentScraper/master/requirements.txt)
chgrp -R debian-transmission data/ sudo chgrp -R debian-transmission data/
chmod -R g+w data/ sudo chmod -R g+w data/
sudo service transmission-daemon restart sudo service transmission-daemon restart
cp login.py.template login.py cp login.py.template login.py
cd lib/py/ cd lib/py/

View File

@ -16,7 +16,7 @@ try:
except NameError: except NameError:
from yggcrawl import YggTorrentScraper from yggcrawl import YggTorrentScraper
scraper = YggTorrentScraper(requests.session()) scraper = YggTorrentScraper(requests.session())
from yggtorrentscraper import set_yggtorrent_tld from yggcrawl import set_yggtorrent_tld
set_yggtorrent_tld("se") set_yggtorrent_tld("se")
cmd = sys.argv[1] cmd = sys.argv[1]