#!/bin/sh

## functions & variables are declared here:-

introduction() {
echo "	||	   ________    ________          "
echo "	||	  || 	  /   ||      /	  \    //"
echo "	||        || 	 /    ||     /     \  //"
echo "	||	  ||=====     ||=====	    \//"	
echo "	||	  || 	 \    ||    \	    //"
echo "	||======  ||______\   ||     \	   //"
echo ""	
echo "An open-source, free & fair network for digital content for the cool netizens :-)"
echo ""
}

list_lbry_clients() {
echo "Here are the list of some LBRY-clients for linux:"
echo "________________________________________________"
echo "1 - LBRY-Desktop (Official)"
echo "2 - LBRY-GTK"
echo "3 - FastLBRY-GTK"
echo "4 - FastLBRY-Terminal"
echo "5 - Lyberry-QT"
echo ""
}

download_lbry_clients() {
read -p ">> Please choose via typing the number corresponding to your preferred LBRY-client: " CHOICE

case $CHOICE in
	1) curl -O https://github.com/lbryio/lbry-desktop/releases/download/v0.53.9/LBRY_0.53.9.AppImage && chmod +x LBRY_0.53.9.AppImage;;
	2) curl -O https://codeberg.org/attachments/aaccd883-1d7a-43ad-a184-667f8ab56ddc && chmod +x aaccd883-1d7a-43ad-a184-667f8ab56ddc
	   echo ""
	   echo ">> Please rename it "aaccd883-1d7a-43ad-a184-667f8ab56ddc" as LBRY-GTK.AppImage"
	   ;;
	3) curl -O https://notabug.org/jyamihud/FastLBRY-GTK/archive/master.tar.gz && tar -xzvf master.tar.gz
	   echo ""
	   echo ">> In this case navigate to the directory via a terminal/CLI & type "python3 run.py""
	   ;;
	4) curl -O https://notabug.org/jyamihud/FastLBRY-terminal/archive/master.tar.gz && tar -xzvf master.tar.gz
	   echo ""
	   echo ">> In this case navigate to the directory via a terminal/CLI & type "python3 run.py""
	   ;;
    5) echo "Make sure to install the latest version of PYTHON-3"
       echo ""
       pip install lyberry-qt
       echo ""
       echo "Lyberry-QT is now installed"
       ;;
esac

echo ">> Your client is ready"
}

## main program here:-
clear
introduction

read -p ">> Do you want to use the based LBRY-clients or go to the normie Odysee website ??? (type lbry or odysee): " RESPONSE
	
if  [ $RESPONSE == "lbry" ];
then 
	list_lbry_clients
	download_lbry_clients
	echo ""
	echo ">> Have a fantastic day/night & welcome to LBRY :-)"
else
	echo ">> The link to the website is "https://odysee.com""
	echo ">> Have a fantastic day/night!!"
fi





