mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-15 07:43:44 +00:00
Add files via upload
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
# chmod +x update-channels-from-git.sh
|
# chmod +x update-channels-from-git.sh
|
||||||
# ./update-channels-from-git.sh
|
# ./update-channels-from-git.sh
|
||||||
#----
|
#----
|
||||||
|
|
||||||
dir=$(pwd)
|
dir=$(pwd)
|
||||||
#----BEGIN EDITABLE VARS----
|
#----BEGIN EDITABLE VARS----
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
@@ -52,8 +51,8 @@ fi
|
|||||||
#----END EDITABLE VARS-------
|
#----END EDITABLE VARS-------
|
||||||
|
|
||||||
# If this is our first install, we will now make all necessary directories to prepare for install
|
# If this is our first install, we will now make all necessary directories to prepare for install
|
||||||
if [ "$FIRST_INSTALL" == "true" ]; then
|
#if [ "$FIRST_INSTALL" == "true" ]; then
|
||||||
echo "This is a FIRST INSTALL, ENTER the NUMBER of PSEUDO CHANNELS to SET UP"
|
echo "ENTER the NUMBER of PSEUDO CHANNELS to SET UP"
|
||||||
read -p 'Number of Channels: ' number_of_channels
|
read -p 'Number of Channels: ' number_of_channels
|
||||||
if (( $number_of_channels >= 1 ))
|
if (( $number_of_channels >= 1 ))
|
||||||
then
|
then
|
||||||
@@ -84,19 +83,19 @@ read -p 'Number of Channels: ' number_of_channels
|
|||||||
mkdir github_download
|
mkdir github_download
|
||||||
cd github_download
|
cd github_download
|
||||||
$SCRIPT_TO_EXECUTE_PLUS_ARGS
|
$SCRIPT_TO_EXECUTE_PLUS_ARGS
|
||||||
else
|
# else
|
||||||
mkdir github_download
|
# mkdir github_download
|
||||||
cd github_download
|
# cd github_download
|
||||||
$SCRIPT_TO_EXECUTE_PLUS_ARGS
|
# $SCRIPT_TO_EXECUTE_PLUS_ARGS
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
#### Next, let's download the latest master version of information from GitHub and store it in a temporary folder
|
#### Next, let's download the latest master version of information from GitHub and store it in a temporary folder
|
||||||
|
|
||||||
#### If necessary, install the required elements as defined by requirements.txt
|
#### If necessary, install the required elements as defined by requirements.txt
|
||||||
#### Also, ask user for information to fill in the plex_token and pseudo_config files
|
#### Also, ask user for information to fill in the plex_token and pseudo_config files
|
||||||
if [ "$FIRST_INSTALL" == "true" ]
|
#if [ "$FIRST_INSTALL" == "true" ]
|
||||||
then
|
# then
|
||||||
echo "INSTALLING EXTERNAL REQUIREMENTS"
|
echo "INSTALLING EXTERNAL REQUIREMENTS"
|
||||||
sudo pip install -r requirements.txt
|
sudo pip install -r requirements.txt
|
||||||
sudo apt-get -y install libxml2-utils recode # NEEDED FOR XML PARSING
|
sudo apt-get -y install libxml2-utils recode # NEEDED FOR XML PARSING
|
||||||
@@ -287,10 +286,10 @@ if [ "$FIRST_INSTALL" == "true" ]
|
|||||||
sudo rm commercial-libraries.temp
|
sudo rm commercial-libraries.temp
|
||||||
sudo cp github_download/both-dir/pseudo_config.py ./
|
sudo cp github_download/both-dir/pseudo_config.py ./
|
||||||
sudo cp github_download/both-dir/PseudoChannel.py ./
|
sudo cp github_download/both-dir/PseudoChannel.py ./
|
||||||
cd ..
|
cd $dir
|
||||||
else
|
# else
|
||||||
cd ..
|
# cd ..
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#### With information downloaded, we will first go to each channel folder and update important things
|
#### With information downloaded, we will first go to each channel folder and update important things
|
||||||
#### This will take the following form
|
#### This will take the following form
|
||||||
@@ -301,8 +300,7 @@ fi
|
|||||||
|
|
||||||
# Scan the dir to see how many channels there are, store them in an arr.
|
# Scan the dir to see how many channels there are, store them in an arr.
|
||||||
CHANNEL_DIR_ARR=( $(find . -maxdepth 1 -type d -name '*'"$CHANNEL_DIR_INCREMENT_SYMBOL"'[[:digit:]]*' -printf "%P\n" | sort -t"$CHANNEL_DIR_INCREMENT_SYMBOL" -n) )
|
CHANNEL_DIR_ARR=( $(find . -maxdepth 1 -type d -name '*'"$CHANNEL_DIR_INCREMENT_SYMBOL"'[[:digit:]]*' -printf "%P\n" | sort -t"$CHANNEL_DIR_INCREMENT_SYMBOL" -n) )
|
||||||
|
#if [ "${#CHANNEL_DIR_ARR[@]}" -gt 1 ]; then
|
||||||
if [ "${#CHANNEL_DIR_ARR[@]}" -gt 1 ]; then
|
|
||||||
echo "+++++ There are ${#CHANNEL_DIR_ARR[@]} channels detected."
|
echo "+++++ There are ${#CHANNEL_DIR_ARR[@]} channels detected."
|
||||||
for channel in "${CHANNEL_DIR_ARR[@]}"
|
for channel in "${CHANNEL_DIR_ARR[@]}"
|
||||||
do
|
do
|
||||||
@@ -335,7 +333,7 @@ if [ "${#CHANNEL_DIR_ARR[@]}" -gt 1 ]; then
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#### Now we will return to the original file, and ensure that everything is in the main folder
|
#### Now we will return to the original file, and ensure that everything is in the main folder
|
||||||
#### This will include the following form
|
#### This will include the following form
|
||||||
|
|||||||
Reference in New Issue
Block a user