harder better stronger

This commit is contained in:
Armust Blegde 2020-12-27 01:03:28 +01:00
parent 9cd545d656
commit 6111fde0c4
4 changed files with 12 additions and 4 deletions

View File

@ -163,6 +163,9 @@ sed -i "s/_PROFIL_/$XZUID/g" ~/.kodi/addons/plugin.video.vstream/resources/sites
sed -i "s/_LOGIN_/$salt/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
sed -i "s/_MDP_/$pepper/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
#BACKUP source... to restore after Vstream upgrade
cp -f ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py ~/.zen/
~/.zen/astrXbian/zen/gchange_IPFS_swarm.sh
~/.zen/astrXbian/zen/ipfs_SWARM_refresh.sh

View File

@ -92,8 +92,8 @@ fi
if [[ ! $isinotifywaitRunning ]]; then
mkdir -p /home/$YOU/astroport
[[ $YOU == "xbian" ]] && /usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/xbian_vstream.sh "$dir" "$file"; done &
[[ $YOU != "xbian" ]] && /usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/mint_youtube.sh "$dir" "$file"; done &
#[[ $YOU == "xbian" ]] && /usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/xbian_vstream.sh "$dir" "$file"; done &
/usr/bin/inotifywait -r -e close_write -m /home/$YOU/astroport | while read dir flags file; do $MY_PATH/zen/mint_youtube.sh "$dir" "$file"; done &
fi
# restart inotifywait (may be useless)

View File

@ -125,9 +125,14 @@ if [[ $g1node != "" ]]; then
/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py unlike -p $liking_me
/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py like -p $liking_me -s 3
done
#$(cat ~/.zen/ipfs_swarm/xbian/_*)
#$(cat ~/.zen/ipfs_swarm/xbian/_*) # ACTIVATE AUTO FULL RESTORE
fi
fi
done
# RESTORE Vstream astroport.py source
if [[ -f ~/.zen/astroport.py ]]; then
cp -f ~/.zen/astroport.py ~/.kodi/addons/plugin.video.vstream/resources/sites/
fi
exit 0

View File

@ -25,7 +25,7 @@ echo "~/.zen/astrXbian/zen/mint_youtube.sh \"$path\" \"$file\""
[[ "$file" == "" || "$path" == "" ]] && echo "ERROR. Parameters missing. xbian_vstream.sh file=$file? path=$path?"
extension="${file##*.}"
TITLE="${file%.*}"
if [[ $extension == "part" ]]; then
if [[ ! -f ${path}${file} ]]; then
file="${TITLE%.*}"
extension="${TITLE##*.}"
fi