From 6111fde0c43930989117b224bf88664736ad1fd9 Mon Sep 17 00:00:00 2001 From: Armust Blegde Date: Sun, 27 Dec 2020 01:03:28 +0100 Subject: [PATCH] harder better stronger --- ISOconfig.sh | 3 +++ cron_MINUTE.sh | 4 ++-- zen/gchange_INIT.sh | 7 ++++++- zen/mint_youtube.sh | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ISOconfig.sh b/ISOconfig.sh index cc33752c8..ee1cf1b6b 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -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 diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index c4822a996..f3d0784bc 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -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) diff --git a/zen/gchange_INIT.sh b/zen/gchange_INIT.sh index f81b33459..027fd1852 100755 --- a/zen/gchange_INIT.sh +++ b/zen/gchange_INIT.sh @@ -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 diff --git a/zen/mint_youtube.sh b/zen/mint_youtube.sh index 6e2e58c62..41bb505fa 100755 --- a/zen/mint_youtube.sh +++ b/zen/mint_youtube.sh @@ -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