Open lpzrulez opened 1 year ago
i have never used downloader via irssi. i'll take a look, no earlier than weekend
Sorry, it's not 5min job. So I don't know when I will have the time to do it.
Cool Appreciate your response Thanks so much
On Thursday, May 4, 2023, Bercik @.***> wrote:
Sorry, it's not 5min job. So I don't know when I will have the time to do it.
— Reply to this email directly, view it on GitHub https://github.com/Bercik1337/rt-auto-install/issues/41#issuecomment-1534753858, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6CW4G6UHYVVIQXWUWSG27DXEOS77ANCNFSM6AAAAAAXJE6RRA . You are receiving this because you authored the thread.Message ID: @.***>
@Bercik1337
may you can adopt this to support autodl-irssi
function AUTODL-IRSSI {
#Set IRSSI_USER equal to RTORRENT_USER grep from rtorrent.service
IRSSI_USER=$(cat /etc/systemd/system/rtorrent.service | grep User | cut -d= -f2)
IRSSI_GROUP=$(id -g $IRSSI_USER)
IRSSI_PORT=$(shuf -i 20000-30000 -n 1)
IRSSI_PASSWORD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 15 | head -n 1)
#install irssi
apt-get -yqq install irssi libarchive-zip-perl libnet-ssleay-perl libhtml-parser-perl libxml-libxml-perl libjson-perl libjson-xs-perl libxml-libxslt-perl php-xml
cat > "/etc/systemd/system/irssi.service" <<-EOF
[Unit]
Description=irssi (in tmux)
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
User=$IRSSI_USER
ExecStart=/usr/bin/tmux -2 new-session -d -s irssi-session irssi
ExecStop=/usr/bin/tmux send-keys -t irssi-session "/quit" KPEnter
WorkingDirectory=/home/$IRSSI_USER/
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target
EOF
#install autodl-irssi a plugin for irssi that monitors IRC announce channels and downloads torrent files based on user-defined filters.
wget -q https://github.com/autodl-community/autodl-irssi/releases/download/2.6.2/autodl-irssi-v2.6.2.zip -O autodl-irssi.zip
mkdir -p /home/$IRSSI_USER/.irssi/scripts/autorun/
unzip -qqo autodl-irssi.zip -d /home/$IRSSI_USER/.irssi/scripts/
mv /home/$IRSSI_USER/.irssi/scripts/autodl-irssi.pl /home/$IRSSI_USER/.irssi/scripts/autorun/
mkdir -p /home/$IRSSI_USER/.autodl
cat > "/home/$IRSSI_USER/.autodl/autodl.cfg" <<-EOF
[options]
gui-server-port = $IRSSI_PORT
gui-server-password = $IRSSI_PASSWORD
EOF
chown -R $IRSSI_USER:$IRSSI_GROUP /home/$IRSSI_USER/.autodl/
chown -R $IRSSI_USER:$IRSSI_GROUP /home/$IRSSI_USER/.irssi/
rm autodl-irssi.zip
#install autodl-rutorrent is a plugin for ruTorrent to monitor and configure autodl-irssi
git clone -q https://github.com/stickz/autodl-rutorrent.git /var/www/rutorrent/plugins/autodl-irssi
chown -R www-data:www-data /var/www/rutorrent/plugins/autodl-irssi
chmod -R 775 /var/www/rutorrent/plugins/autodl-irssi
sed -i '3i\\t$autodlPort = '"$IRSSI_PORT"';' /var/www/rutorrent/conf/config.php
sed -i '4i\\t$autodlPassword = \"'"$IRSSI_PASSWORD"'\";' /var/www/rutorrent/conf/config.php
systemctl enable irssi.service
systemctl start irssi.service
systemctl restart apache2.service
}
@lpzrulez it's a more a some days job, to fiddle everything together, but yes it's possible may you can try this no warrenty atm.
how to i install autodl-irssi post this installation . i tried official page of the same but it is asking pass and port in autodl.cfg but theres no such file can someone guide and oblige please